- Posts: 1
- Thank you received: 0
function(ll, z) {
var X = (1 << z) % ll.x; /* wrap */
return "http://tms1.visicom.ua/1.0.3/world_ru/" + z + "/" + X + "/" + ll.y + ".png";
}
Please Log in or Create an account to join the conversation.
var gallPetersMapType = new google.maps.ImageMapType({
getTileUrl: function(coord, zoom) {
var numTiles = 1 << zoom;
// Don't wrap tiles vertically.
if (coord.y < 0 || coord.y >= numTiles) {
return null;
}
// Wrap tiles horizontally.
var x = ((coord.x % numTiles) + numTiles) % numTiles;
// For simplicity, we use a tileset consisting of 1 tile at zoom level 0
// and 4 tiles at zoom level 1.
var baseURL = 'images/';
baseURL += 'gall-peters_' + zoom + '_' + x + '_' + coord.y + '.png';
return baseURL;
},
tileSize: new google.maps.Size(800, 512),
minZoom: 0,
maxZoom: 1,
name: 'Gall-Peters'
});
getTileUrl: function(coord, zoom) {
function(coord, zoom) {
return baseURL;
}
Please Log in or Create an account to join the conversation.
© 2011- Жук Це-Це. Design by Dmitry Zhuk