Wasn't it warden [Andrew Leach - Maps API Guru] who wrote:
>

>On Sep 18, 11:03 am, MikeS <[EMAIL PROTECTED]> wrote:
>>
>> 1: is it possible to control/change the colour (I'm UK based) of the
>> route line in gDirections? If so how please as I have not been able to
>> find anything out on this.
>
>Not as a GDirectionsOption, which would definitely be rather nice. You
>need to follow Mike's custom directions example and use the directions
>data yourself. That way you have complete control over what everything
>looks like -- rather "all or nothing", though.

Actually, it's much easier now that we have GPolyline.setStrokeStyle().
All you have to do is

      GEvent.addListener(directions, "load", function() {
        dirn.getPolyline().setStrokeStyle({color:"#ff0000"});
      });


-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to