Created
March 31, 2012 17:13
-
-
Save brendannee/2266842 to your computer and use it in GitHub Desktop.
Get Google Maps 8bit tile layer into your own project
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
var eightbitOptions = { | |
getTileUrl: function(coord, zoom) { | |
return "http://mt1.google.com/vt/lyrs=8bit,m@174000000&hl=en&src=app&s=Galil&" + | |
"z=" + zoom + "&x=" + coord.x + "&y=" + coord.y; | |
}, | |
tileSize: new google.maps.Size(256, 256), | |
isPng: true | |
}; | |
var eightbitMapType = new google.maps.ImageMapType(eightbitOptions); | |
map.overlayMapTypes.insertAt(0, eightbitMapType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment