Skip to content

Commit

Permalink
Merge branch 'develop' into feature/add-basemap-gallery-widget
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSpriggs authored Nov 2, 2016
2 parents c426979 + 5778398 commit 45274a7
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 181 deletions.
86 changes: 30 additions & 56 deletions viewer/js/config/basemaps.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
define([
//'esri/dijit/Basemap',
//'esri/dijit/BasemapLayer'
'esri/dijit/Basemap',
'esri/dijit/BasemapLayer',
'dojo/i18n!./nls/main'
], function (/* Basemap, BasemapLayer, */i18n) {
], function (Basemap, BasemapLayer, i18n) {

return {
map: true, // needs a reference to the map
mode: 'agol', // mut be either 'agol' or 'custom'
//mode: 'agol', // mut be either 'agol' or 'custom'

/* optional starting basemap
/ otherwise uses the basemap from the map
Expand All @@ -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 Expand Up @@ -90,6 +64,19 @@ define([
}
]
}
},
mapboxPirates: {
title: 'Pirates (mapbox.com)',
basemap: new Basemap({
id: 'mapboxPirates',
layers: [new BasemapLayer({
url: 'https://${subDomain}.tiles.mapbox.com/v3/aj.Sketchy2/${level}/${col}/${row}.png',
copyright: 'mapbox, 2016',
id: 'mapboxPirates',
subDomains: ['a', 'b', 'c', 'd'],
type: 'WebTiledLayer'
})]
})
}

// additional examples of vector tile basemaps (requires v3.16 or higher)
Expand Down Expand Up @@ -283,19 +270,6 @@ define([
})]
})
},
mapboxPirates: {
title: 'Pirates (mapbox.com)',
basemap: new Basemap({
id: 'mapboxPirates',
layers: [new BasemapLayer({
url: 'https://${subDomain}.tiles.mapbox.com/v3/aj.Sketchy2/${level}/${col}/${row}.png',
copyright: 'mapbox, 2016',
id: 'mapboxPirates',
subDomains: ['a', 'b', 'c', 'd'],
type: 'WebTiledLayer'
})]
})
}
*/
}
};
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
Loading

0 comments on commit 45274a7

Please sign in to comment.