Skip to content

Commit

Permalink
Let Esri handle the i18n title for Esri basemaps. Still can be overri…
Browse files Browse the repository at this point in the history
…dden in config
  • Loading branch information
tmcgee committed Nov 1, 2016
1 parent 5d79b34 commit 25b4d70
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 110 deletions.
52 changes: 13 additions & 39 deletions viewer/js/config/basemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,45 +22,19 @@ define([

// define all valid basemaps here.
basemaps: {
streets: {
title: i18n.basemaps.streets
},
'streets-night-vector': { // requires v3.16 or higher
title: i18n.basemaps.streetsNightVector
},
'streets-navigation-vector': { // requires v3.16 or higher
title: i18n.basemaps.streetsNavigationVector
},
'streets-relief-vector': { // requires v3.16 or higher
title: i18n.basemaps.streetsReliefVector
},
satellite: {
title: i18n.basemaps.satellite
},
hybrid: {
title: i18n.basemaps.hybrid
},
topo: {
title: i18n.basemaps.topo
},
terrain: {
title: i18n.basemaps.terrain
},
'gray-vector': { // requires v3.16 or higher
title: i18n.basemaps.grayVector
},
'dark-gray-vector': { // requires v3.16 or higher
title: i18n.basemaps.darkGrayVector
},
oceans: {
title: i18n.basemaps.oceans
},
'national-geographic': {
title: i18n.basemaps.nationalGeographic
},
osm: {
title: i18n.basemaps.osm
},
streets: {},
'streets-night-vector': {}, // requires v3.16 or higher
'streets-navigation-vector': {}, // requires v3.16 or higher
'streets-relief-vector': {}, // requires v3.16 or higher
satellite: {},
hybrid: {},
topo: {},
terrain: {},
'gray-vector': {}, // requires v3.16 or higher
'dark-gray-vector': {}, // requires v3.16 or higher
oceans: {},
'national-geographic': {},
osm: {},
landsatShaded: {
title: i18n.basemaps.landsatShaded,
basemap: {
Expand Down
16 changes: 1 addition & 15 deletions viewer/js/config/nls/es/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,8 @@
define({
basemaps: {
davidRumseyMap1812: 'David Rumsey 1812',
darkGrayVector: 'Gris oscuro',
earthAtNight: 'Tierra en la noche',
grayVector: 'Gris',
hybrid: 'Híbrido',
landsatShaded: 'Landsat sombreada',
nationalGeographic: 'Nat Geo',
oceans: 'Oceános',
osm: 'Open Street Map',
satellite: 'Satélite',
streets: 'Calle',
streetsNavigationVector: 'Calle (Navegación)',
streetsNightVector: 'Calle (Noche)',
streetsReliefVector: 'Calle (Relieve)',
terrain: 'Terreno',
title: 'Mapas base',
topo: 'Topográfico'
landsatShaded: 'Landsat sombreada'
},
bookmarks: {
nullIsland: 'Isla nula',
Expand Down
15 changes: 1 addition & 14 deletions viewer/js/config/nls/fr/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,8 @@
define({
basemaps: {
davidRumseyMap1812: 'David Rumsey 1812',
darkGrayVector: 'Gris foncé',
earthAtNight: 'Terre la nuit',
grayVector: 'Gris',
hybrid: 'Hybride',
landsatShaded: 'Landsat et relief ombragé',
nationalGeographic: 'National Geographic',
oceans: 'Océans',
osm: 'OpenStreetMap',
satellite: 'Image satellitaire',
streets: 'Rues',
streetsNavigationVector: 'Rues (navigation)',
streetsNightVector: 'Rues (nuit)',
streetsReliefVector: 'Rues (relief)',
terrain: 'Terrain',
topo: 'Topographique'
landsatShaded: 'Landsat et relief ombragé'
},
bookmarks: {
nullIsland: 'Île Null',
Expand Down
15 changes: 1 addition & 14 deletions viewer/js/config/nls/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,8 @@ define({
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: 'Streets (Relief)',
terrain: 'Terrain',
topo: 'Topographic'
landsatShaded: 'Landsat Shaded'
},
bookmarks: {
nullIsland: 'Null Island',
Expand Down
15 changes: 1 addition & 14 deletions viewer/js/config/nls/pt-br/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,8 @@
define({
basemaps: {
davidRumseyMap1812: 'David Rumsey 1812',
darkGrayVector: 'Cinzento escuro',
earthAtNight: 'Terra à noite',
grayVector: 'Cinzento',
hybrid: 'Híbrido',
landsatShaded: 'Landsat sombreado',
nationalGeographic: 'National Geographic',
oceans: 'Oceanos',
osm: 'Open Street Map',
satellite: 'Satélite',
streets: 'Ruas',
streetsNavigationVector: 'Ruas (Navegação)',
streetsNightVector: 'Ruas (Nocturno)',
streetsReliefVector: 'Ruas (Relevo)',
terrain: 'Terreno',
topo: 'Topográfico'
landsatShaded: 'Landsat sombreado'
},
bookmarks: {
nullIsland: 'Ilha Nula',
Expand Down
15 changes: 1 addition & 14 deletions viewer/js/config/nls/pt-pt/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,8 @@
define({
basemaps: {
davidRumseyMap1812: 'David Rumsey 1812',
darkGrayVector: 'Cinzento escuro',
earthAtNight: 'Terra à noite',
grayVector: 'Cinzento',
hybrid: 'Híbrido',
landsatShaded: 'Landsat sombreado',
nationalGeographic: 'National Geographic',
oceans: 'Oceanos',
osm: 'Open Street Map',
satellite: 'Satélite',
streets: 'Ruas',
streetsNavigationVector: 'Ruas (Navegação)',
streetsNightVector: 'Ruas (Nocturno)',
streetsReliefVector: 'Ruas (Relevo)',
terrain: 'Terreno',
topo: 'Topográfico'
landsatShaded: 'Landsat sombreado'
},
bookmarks: {
nullIsland: 'Ilha Nula',
Expand Down

0 comments on commit 25b4d70

Please sign in to comment.