hi,
I am new to Google map api and map behaviour development, my
issue is whenever i double click on map it zoom the map. I want to put
marker on double click so, i want to disable double click zoom on map.
I have tried alot to disable zoom. But it always zoom when i am double
click on it. Following is the snippet of code which i am using. Please
help ASAP.
Thanx in Advance!!!!!!!!.
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.disableContinuousZoom();
map.disableDoubleClickZoom();
// map.setDoubleClickMode(MapAction.ACTION_NOTHING);
map.setCenter(new GLatLng(39.045, -100.235), 5);
geocoder = new GClientGeocoder();
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var lngSpan = northEast.lng() - southWest.lng();
var latSpan = northEast.lat() - southWest.lat();
map.setUIToDefault(); // to display map, satellite, hybrid,
terrain and navigation bar
map.addControl(new GOverviewMapControl()); // for overview window
var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize
(25,25)); // defining position
map.addControl(new GNavLabelControl(),topRight); // for
displaying location label
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---