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

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

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -