Hi!
We are trying to modify the polyline color of the directions overlay.
I have this code:
function onDirLoad(event:DirectionsEvent):void {
var dir:Directions = event.directions;
map.addOverlay(dir.createPolyline());
And would like to change the blue polyline color to red, for example.
I know that using:
var polyline:Polyline = new Polyline([
new LatLng(41.178, 1.362),
new LatLng(41.131, 1.366)
], new PolylineOptions({ strokeStyle: new StrokeStyle({
color: 0xFF0000,
thickness: 4,
alpha: 0.7})
}));
map.addOverlay(polyline);
I am able to create the line between each point, but would like to use
the functionality of the Direction option.
Many thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---