On Jul 25, 9:17 am, bernd_schulz <[email protected]> wrote:
> On 23 Jul., 19:49, "[email protected]" <[email protected]>
> wrote:> The blue lines are being added here:
> > map.addOverlay(gp);
>
> > add this:
> > gp.setStrokeStyle({color: "#FF0000"});
> > immediately after it to change it to red.
>
> > The other option is to create a new polyline from the vertices of that
> > one, creating it with the color you want before adding it to the map.
>
> >   -- Larry
>
> Hi Larry,
> thanks, it works well.
> But I have a new problem. First I load a default route by geoxml. Then
> the user can create a own route by click in the map. When you click on
> the default route opens a infowindow. It's not desired, but I can't
> prevent it.

options:
1. Remove the "description field" from the kml.
or
2. Use a third party parser  (GeoXml or EGeoXml) which will give you
more control
or
3. Write your own that parses the kml and adds the polyline, but
doesn't add the infoWindow).

  -- Larry

> Please have a look at the page.
> Thanks Bernd
--~--~---------~--~----~------------~-------~--~----~
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