-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #572 from iled/develop
Add nls support in config files, add pt-pt translation
- Loading branch information
Showing
27 changed files
with
570 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
define({ | ||
map: true, | ||
editable: true, | ||
bookmarks: [ | ||
{ | ||
extent: { | ||
xmin: -15489130.48708616, | ||
ymin: 398794.4860580916, | ||
xmax: -5891085.7193757, | ||
ymax: 8509680.431452557, | ||
spatialReference: { | ||
wkid: 102100 | ||
} | ||
define([ | ||
'dojo/i18n!./nls/main' | ||
], function (i18n) { | ||
|
||
return { | ||
map: true, | ||
editable: true, | ||
bookmarks: [ | ||
{ | ||
extent: { | ||
xmin: -15489130.48708616, | ||
ymin: 398794.4860580916, | ||
xmax: -5891085.7193757, | ||
ymax: 8509680.431452557, | ||
spatialReference: { | ||
wkid: 102100 | ||
} | ||
}, | ||
name: i18n.bookmarks.usa | ||
}, | ||
name: 'USA' | ||
} | ||
] | ||
{ | ||
extent: { | ||
xmin: 0, | ||
ymin: 0, | ||
xmax: 0, | ||
ymax: 0, | ||
spatialReference: { | ||
wkid: 102100 | ||
} | ||
}, | ||
name: i18n.bookmarks.nullIsland | ||
} | ||
] | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,112 +1,117 @@ | ||
/*eslint no-console: 0, no-alert: 0*/ | ||
define({ | ||
map: true, | ||
zoomExtentFactor: 2, | ||
queries: [ | ||
{ | ||
description: 'Find A Public Safety Location By Name', | ||
url: 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyOperationalLayers/MapServer', | ||
layerIds: [1, 2, 3, 4, 5, 6, 7], | ||
searchFields: ['FDNAME, PDNAME', 'NAME', 'RESNAME'], | ||
minChars: 2, | ||
gridColumns: [ | ||
{ | ||
field: 'Name', | ||
label: 'Name' | ||
}, | ||
{ | ||
field: 'layerName', | ||
label: 'Layer', | ||
width: 100, | ||
sortable: false, | ||
resizable: false | ||
} | ||
], | ||
sort: [ | ||
{ | ||
attribute: 'Name', | ||
descending: false | ||
} | ||
], | ||
prompt: 'fdname, pdname, name or resname', | ||
selectionMode: 'single' | ||
}, | ||
{ | ||
description: 'Find Incident By Code/Description', | ||
url: 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyOperationalLayers/MapServer', | ||
layerIds: [15, 17, 18], | ||
searchFields: ['FCODE', 'DESCRIPTION'], | ||
minChars: 4, | ||
gridColumns: [ | ||
{ | ||
field: 'layerName', | ||
label: 'Layer', | ||
width: 100, | ||
sortable: false, | ||
resizable: false | ||
}, | ||
{ | ||
field: 'Fcode', | ||
label: 'Fcode', | ||
width: 100 | ||
}, | ||
{ | ||
field: 'Description', | ||
label: 'Descr' | ||
}, | ||
{ | ||
field: 'SORT_VALUE', | ||
visible: false, | ||
get: function (findResult) { | ||
return findResult.layerName + ' ' + findResult.feature.attributes.Fcode; //seems better to use attributes[ 'Fcode' ] but fails build. Attribute names will be aliases and may contain spaces and mixed cases. | ||
define([ | ||
'dojo/i18n!./nls/main' | ||
], function (i18n) { | ||
|
||
return { | ||
map: true, | ||
zoomExtentFactor: 2, | ||
queries: [ | ||
{ | ||
description: i18n.find.louisvillePubSafety, | ||
url: 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyOperationalLayers/MapServer', | ||
layerIds: [1, 2, 3, 4, 5, 6, 7], | ||
searchFields: ['FDNAME, PDNAME', 'NAME', 'RESNAME'], | ||
minChars: 2, | ||
gridColumns: [ | ||
{ | ||
field: 'Name', | ||
label: 'Name' | ||
}, | ||
{ | ||
field: 'layerName', | ||
label: 'Layer', | ||
width: 100, | ||
sortable: false, | ||
resizable: false | ||
} | ||
} | ||
], | ||
sort: [ | ||
{ | ||
attribute: 'SORT_VALUE', | ||
descending: false | ||
} | ||
], | ||
prompt: 'fdname, pdname, name or resname', | ||
customGridEventHandlers: [ | ||
{ | ||
event: '.dgrid-row:click', | ||
handler: function (event) { | ||
alert('You clicked a row!'); | ||
console.log(event); | ||
], | ||
sort: [ | ||
{ | ||
attribute: 'Name', | ||
descending: false | ||
} | ||
], | ||
prompt: 'fdname, pdname, name or resname', | ||
selectionMode: 'single' | ||
}, | ||
{ | ||
description: i18n.find.sf311Incidents, | ||
url: 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyOperationalLayers/MapServer', | ||
layerIds: [15, 17, 18], | ||
searchFields: ['FCODE', 'DESCRIPTION'], | ||
minChars: 4, | ||
gridColumns: [ | ||
{ | ||
field: 'layerName', | ||
label: 'Layer', | ||
width: 100, | ||
sortable: false, | ||
resizable: false | ||
}, | ||
{ | ||
field: 'Fcode', | ||
label: 'Fcode', | ||
width: 100 | ||
}, | ||
{ | ||
field: 'Description', | ||
label: 'Descr' | ||
}, | ||
{ | ||
field: 'SORT_VALUE', | ||
visible: false, | ||
get: function (findResult) { | ||
return findResult.layerName + ' ' + findResult.feature.attributes.Fcode; //seems better to use attributes[ 'Fcode' ] but fails build. Attribute names will be aliases and may contain spaces and mixed cases. | ||
} | ||
} | ||
], | ||
sort: [ | ||
{ | ||
attribute: 'SORT_VALUE', | ||
descending: false | ||
} | ||
], | ||
prompt: 'fdname, pdname, name or resname', | ||
customGridEventHandlers: [ | ||
{ | ||
event: '.dgrid-row:click', | ||
handler: function (event) { | ||
alert('You clicked a row!'); | ||
console.log(event); | ||
} | ||
} | ||
] | ||
} | ||
], | ||
selectionSymbols: { | ||
polygon: { | ||
type: 'esriSFS', | ||
style: 'esriSFSSolid', | ||
color: [255, 0, 0, 62], | ||
outline: { | ||
type: 'esriSLS', | ||
style: 'esriSLSSolid', | ||
color: [255, 0, 0, 255], | ||
width: 3 | ||
} | ||
}, | ||
point: { | ||
type: 'esriSMS', | ||
style: 'esriSMSCircle', | ||
size: 25, | ||
color: [255, 0, 0, 62], | ||
angle: 0, | ||
xoffset: 0, | ||
yoffset: 0, | ||
outline: { | ||
type: 'esriSLS', | ||
style: 'esriSLSSolid', | ||
color: [255, 0, 0, 255], | ||
width: 2 | ||
} | ||
] | ||
} | ||
], | ||
selectionSymbols: { | ||
polygon: { | ||
type: 'esriSFS', | ||
style: 'esriSFSSolid', | ||
color: [255, 0, 0, 62], | ||
outline: { | ||
type: 'esriSLS', | ||
style: 'esriSLSSolid', | ||
color: [255, 0, 0, 255], | ||
width: 3 | ||
} | ||
}, | ||
point: { | ||
type: 'esriSMS', | ||
style: 'esriSMSCircle', | ||
size: 25, | ||
color: [255, 0, 0, 62], | ||
angle: 0, | ||
xoffset: 0, | ||
yoffset: 0, | ||
outline: { | ||
type: 'esriSLS', | ||
style: 'esriSLSSolid', | ||
color: [255, 0, 0, 255], | ||
width: 2 | ||
} | ||
} | ||
}, | ||
selectionMode: 'extended' | ||
selectionMode: 'extended' | ||
}; | ||
}); |
Oops, something went wrong.