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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -