javascript - Google Maps Marker double click zooming map -


i have placed several makers on google map, follows -

var newmarker = new google.maps.marker({ position: someposition,                map: map,                title: 'my marker',                draggable: true            }); 

and set number of listeners on markers; click, dblclick, dragend & rightclick -

google.maps.event.addlistener(newmarker, 'dblclick', function (evt) {                dostuffwith(newmarker);            }); 

this works, problem when double click markers, map zooms in. i'd map zoom in when double click map only, if double click marker i'd listener event fire & map not zoom.

is possible ? thank you.

you can add

disabledoubleclickzoom: true 

to map options.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -