How do I toggle 'draggable' for Google Maps GMarker object?
Posted
by Jules
on Stack Overflow
See other posts from Stack Overflow
or by Jules
Published on 2010-06-15T05:13:01Z
Indexed on
2010/06/15
5:22 UTC
Read the original article
Hit count: 177
google-maps
I want to have draggable markers (already done), but I need to be able to turn off draggability in certain conditions.
Marker is created like this;
var Marker = new GMarker(center,{draggable:true});
...which works fine. But I can't figure out how to make it undraggable.
© Stack Overflow or respective owner