Wasn't it bratliff who wrote:
>Slightly off topic, I would like to be able to influence styles/colors
>in the URL parameters.  Something like:
>
>    ?id=http://polylibs.googlepages.com/st26.kml&color=FF0000FF
>
>I assume it cannot be done.  It would eliminate a lot of redundancy.

You can't influence what GGeoXml does, but you can detect the addOverlay
and change things to be the way you want.

 GEvent.addListener(map,"addoverlay",function(overlay) {
   if (overlay instanceof GPolyline) {
     overlay.setStrokeStyle({color:"#ff0000",opacity:1.0});
   }
 });

All polylines that get addOverlay()ed while that code is active are
immediately recoloured.

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