Skip to content

Instantly share code, notes, and snippets.

@asizer
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save asizer/7a5788d2b8cd4ccc4ae5 to your computer and use it in GitHub Desktop.

Select an option

Save asizer/7a5788d2b8cd4ccc4ae5 to your computer and use it in GitHub Desktop.
// title for BasemapToggle
'title': 'Campus',
// path to thumbnail. Starts in root directory of app (relative from index.html)
'thumbnailUrl': 'assets/images/TopoCampus.png',
// Can include multiple layers here. In this one, the default topo map is combined
// with a custom campus map so that there's a fallback basemap in areas that the campus map doesn't cover.
'baseMapLayers': [{
url: '//services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer'
}, {
url: '//arcgis-tenone2012-1974758903.us-west-1.elb.amazonaws.com/arcgis/rest/services/Campus/MapServer'
// need a third layer for a basemap? just uncomment the next two lines:
// }, {
// url: '//your-awesome-basemap.com/arcgis/rest/services/AnotherMap/MapServer'
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment