why polyline not moved in this code?
function UpdateLine() {
path = DirectLine.getPath();
//alert('move from ' + path.getAt(0) + ', ' + path.getAt(1));
DirectLine.setPath([MarkerStart.getPosition(),
MarkerEnd.getPosition()]);
path = DirectLine.getPath();
//alert('to ' + path.getAt(0) + ', ' + path.getAt(1));
}
and moved in this
function UpdateLine() {
path = DirectLine.getPath();
alert('move from ' + path.getAt(0) + ', ' + path.getAt(1));
DirectLine.setPath([MarkerStart.getPosition(),
MarkerEnd.getPosition()]);
path = DirectLine.getPath();
alert('to ' + path.getAt(0) + ', ' + path.getAt(1));
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.