Onclick on Google map marker but not when panning the map -



Onclick on Google map marker but not when panning the map -

i'm using (javascript):

google.maps.event.adddomlistener(new_marker, 'click', function(e) { alert("hi"); });

but don't want trigger when user moves map, , happened while clicking on marker. clear: want code run when user clicked on marker, without moving map. how can that?

google-maps-api-3

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -