Skip to content

Instantly share code, notes, and snippets.

@brendannee
Created March 31, 2012 17:13
Show Gist options
  • Save brendannee/2266842 to your computer and use it in GitHub Desktop.
Save brendannee/2266842 to your computer and use it in GitHub Desktop.
Get Google Maps 8bit tile layer into your own project
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