Created
March 6, 2012 00:52
-
-
Save nvkelso/1982555 to your computer and use it in GitHub Desktop.
Use Stamen's map tiles in your favorite mapping library, Google Maps version
This file contains 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
// replace "toner" here with "terrain" or "watercolor" | |
var layer = "toner"; | |
var map = new google.maps.Map(document.getElementById("element_id"), { | |
center: new google.maps.LatLng(37.7, -122.4), | |
zoom: 12, | |
mapTypeId: layer, | |
mapTypeControlOptions: { | |
mapTypeIds: [layer] | |
} | |
}); | |
map.mapTypes.set(layer, new google.maps.StamenMapType(layer)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment