Re: Deeper Zoom
I'm trying to set the offset but can't figure out where to set it
map.spec.zoomLevelOffset, map.zoomLevelOffset returns undefined ???
Here's my code:
map.mapTypes[map.mapTypes.length] = yourMapType;
yourMapType = copy_obj(map.mapTypes[0]);
// Set Path to Our Custom Map Image Tiles
yourMapType.baseUrls = new Array();
yourMapType.baseUrls[0] = cpath+"maptiles/getTiles.php?";
// Map Display name in the auto-generated maplink in the top
right corner.
yourMapType.getLinkText = function() { return 'My Custom Map'; }
// Register the new mapType with the running google map.
map.mapTypes[map.mapTypes.length] = yourMapType;
//Set the onload view to our new map
map.setMapType(map.mapTypes[1]);
alert(map.spec.zoomLevelOffset );
Thanks
0 Comments:
Yorum Gönder
<< Home