Created
May 9, 2014 15:31
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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