Skip to content

Commit

Permalink
include custom basemap as example.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Nov 1, 2016
1 parent 25b4d70 commit d09bd7f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions viewer/js/config/basemaps.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
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
Expand Down Expand Up @@ -64,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 @@ -257,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

0 comments on commit d09bd7f

Please sign in to comment.