How to get markers after calling drive directions in Google Maps API?
Posted
by Ivan Rocha
on Stack Overflow
See other posts from Stack Overflow
or by Ivan Rocha
Published on 2010-03-12T17:16:35Z
Indexed on
2010/03/12
17:17 UTC
Read the original article
Hit count: 717
Hi all,
I just started working using Google Maps API yesterday, and trying to set up drive directions to my map. My problem is: when I call the function load,
[...]
gdir = new GDirections(map, directionsPanel);
[...]
gdir.load("from: " + fromAddress + " to: " + toAddress);
it returns a map whose markers are not draggable. So, I need to make them draggable in order to recalculate the directions, but I can't get the markers objects.
Someone knows how can I do it?
Thanks, Ivan.
© Stack Overflow or respective owner