HI in my xml I have this data.
<displayPoints>
var flightPlanCoordinates =
[
new google.maps.LatLng(-12.0452358, -77.0305699),
new google.maps.LatLng(-12.0452365, -77.0305699),
new google.maps.LatLng(-12.0489947, -77.0387506),
new google.maps.LatLng(-12.0673559, -77.0370769),
new google.maps.LatLng(-12.1417531, -77.0194816)
];
</displayPoints>
In javascript I need a function that can create multiple polylines
(the code below don't work) !!
var getPoints =
markers[i].getElementsByTagName("displayPolyline");
displayPolyline = createPolyline(getPoints);
function createPolyline(flightPlanCoordinates)
{
var flightPath = new google.maps.Polyline({
path: flightPlanCoordinates,
strokeColor: color,
strokeOpacity: 1.0,
strokeWeight: 2
});
flightPath.setMap(map);
}
BEST REGARDS !!!
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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?hl=en.