I searched but I couldnt find how to set the initial zoom level. I
tried something but it doesnt work, When i alert the coming zoom
value, it seems normal. but it doesnt work with initializing the map.
What am i doing wrong?
var cor_x = '<?php echo $_GET['x']; ?>';
var cor_y = '<?php echo $_GET['y']; ?>';
var zoom = '<?php echo $_GET['zoom']; ?>';
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.addControl(new GSmallMapControl());
map.setCenter(new GLatLng(cor_x, cor_y));
map.setMapType(G_NORMAL_MAP);
map.setZoom(zoom);
.....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---