I`ve created a draggble marker , and I`am using the variable l to get the
lat and lan .
startMarker.addEventListener(MapMouseEvent.DRAG_END,
function(event:Event):void {
var l =startMarker.getLatLng();
And now I want to draw lines from that point l to some coordionates
rijButton.addEventListener(Event.CHANGE, checkboxChange);
function checkboxChange(evt:Event)
{
checkboxStatus = evt.target.selected;
dir = new Directions();
dir.addEventListener(DirectionsEvent.DIRECTIONS_SUCCESS, onDirLoad);
if (checkboxStatus == true)
{
dir.load(" ... to 52.359916,4.88412"); /// WHAT TO WRITE HERE ???
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" 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-api-for-flash?hl=en.