Skip to content

Instantly share code, notes, and snippets.

@nohe427
Created May 9, 2014 15:31
Show Gist options
  • Save nohe427/20fc9650e672f9bd2212 to your computer and use it in GitHub Desktop.
Save nohe427/20fc9650e672f9bd2212 to your computer and use it in GitHub Desktop.
Random Basemap Generator. This generates a random basemap for use in the ArcGIS JavaScript API.
function mapSelect(){
var mapOptions = ["osm", "national-geographic", "gray", "satellite", "hybrid", "oceans", "streets", "topo"];
num = Math.floor(Math.random() * mapOptions.length);
console.log(num)
basemap = mapOptions[num];
console.log(basemap)
return basemap;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment