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
Post a Comment