-
-
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.
complete viewer, add nls support in basemaps and bookmarks
uniformize keys names to camelCase.
- Loading branch information
Showing
5 changed files
with
159 additions
and
108 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,23 @@ | ||
define({ | ||
map: true, | ||
editable: true, | ||
bookmarks: [ | ||
{ | ||
extent: { | ||
xmin: -15489130.48708616, | ||
ymin: 398794.4860580916, | ||
xmax: -5891085.7193757, | ||
ymax: 8509680.431452557, | ||
spatialReference: { | ||
wkid: 102100 | ||
} | ||
}, | ||
name: 'USA' | ||
} | ||
] | ||
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 | ||
} | ||
] | ||
} | ||
}); |
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,23 +1,58 @@ | ||
// http://dojotoolkit.org/reference-guide/1.10/dojo/i18n.html | ||
define({ | ||
root: { | ||
operationalLayers: { | ||
sf311Incidents: 'San Francisco 311 Incidents' | ||
root: { | ||
basemaps: { | ||
davidRumseyMap1812: 'David Rumsey 1812', | ||
darkGrayVector: 'Dark Gray', | ||
earthAtNight: 'Earth at Night', | ||
grayVector: 'Gray', | ||
hybrid: 'Hybrid', | ||
landsatShaded: 'Landsat Shaded', | ||
nationalGeographic: 'Nat Geo', | ||
oceans: 'Oceans', | ||
osm: 'Open Street Map', | ||
satellite: 'Satellite', | ||
streets: 'Streets', | ||
streetsNavigationVector: 'Streets (Navigation)', | ||
streetsNightVector: 'Streets (Night)', | ||
streetsReliefVector: 'Street (Relief)', | ||
terrain: 'Terrain', | ||
title: 'Basemaps', | ||
topo: 'Topographic' | ||
}, | ||
bookmarks: { | ||
usa: 'USA' | ||
}, | ||
viewer: { | ||
operationalLayers: { | ||
damageAssessment: 'Damage Assessment', | ||
louisvillePubSafety: 'Louisville Public Safety', | ||
restaurants: 'Restaurants', | ||
sf311Incidents: 'San Francisco 311 Incidents', | ||
vectortile1: 'Light Gray Canvas Vector', | ||
vectortile2: 'Custom Vector Style' | ||
}, | ||
titles: { | ||
header: 'Configurable Map Viewer', | ||
pageTitle: 'Configurable Map Viewer' | ||
subHeader: 'make it your own', | ||
}, | ||
widgets: { | ||
bookmarks: 'Bookmarks', | ||
directions: 'Directions', | ||
draw: 'Draw', | ||
editor: 'Editor', | ||
find: 'Find', | ||
help: 'Help', | ||
identify: 'Identify', | ||
measure: 'Measurement', | ||
layerControl: 'Layers', | ||
legend: 'Legend', | ||
print: 'Print', | ||
streetview: 'Google Street View' | ||
} | ||
|
||
}, | ||
}, | ||
widgetTitles: { | ||
bookmarks: 'Bookmarks', | ||
directions: 'Directions', | ||
draw: 'Draw', | ||
editor: 'Editor', | ||
find: 'Find', | ||
help: 'Help', | ||
identify: 'Identify', | ||
measure: 'Measurement', | ||
layerControl: 'Layers', | ||
legend: 'Legend', | ||
print: 'Print', | ||
streetview: 'Google Street View' | ||
} | ||
}, | ||
'pt-pt': true | ||
}) | ||
'pt-pt': true | ||
}); |
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,22 +1,32 @@ | ||
// http://dojotoolkit.org/reference-guide/1.10/dojo/i18n.html | ||
define({ | ||
root: { | ||
operationalLayers: { | ||
sf311Incidents: 'San Francisco 311 Incidents' | ||
}, | ||
widgetTitles: { | ||
bookmarks: 'Marcadores', | ||
directions: 'Direcções', | ||
draw: 'Desenhar', | ||
editor: 'Editor', | ||
find: 'Procurar', | ||
help: 'Ajuda', | ||
identify: 'Identificar', | ||
measure: 'Medir', | ||
layerControl: 'Camadas', | ||
legend: 'Legendas', | ||
print: 'Imprimir', | ||
streetview: 'Google Street View' | ||
viewer: { | ||
operationalLayers: { | ||
damageAssessment: 'Avaliação de dano', | ||
louisvillePubSafety: 'Segurança Pública de Louisville', | ||
restaurants: 'Restaurantes', | ||
sf311Incidents: 'Incidentes do 311 de São Francisco', | ||
vectortile1: 'Tela vectorial cinzento claro', | ||
vectortile2: 'Estilo vectorial personalizado' | ||
}, | ||
titles: { | ||
header: 'Configurable Map Viewer', | ||
pageTitle: 'Configurable Map Viewer' | ||
subHeader: 'make it your own', | ||
}, | ||
widgets: { | ||
bookmarks: 'Marcadores', | ||
directions: 'Direcções', | ||
draw: 'Desenhar', | ||
editor: 'Editor', | ||
find: 'Procurar', | ||
help: 'Ajuda', | ||
identify: 'Identificar', | ||
measure: 'Medir', | ||
layerControl: 'Camadas', | ||
legend: 'Legendas', | ||
print: 'Imprimir', | ||
streetview: 'Google Street View' | ||
} | ||
} | ||
} | ||
}) | ||
}); |
Oops, something went wrong.