Google Groups Home
Help | Sign in
Message from discussion KML works KMZ fails
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Williams  
View profile
 More options Oct 7 2008, 10:44 pm
From: Mike Williams <nos...@econym.demon.co.uk>
Date: Tue, 7 Oct 2008 15:44:57 +0100
Local: Tues, Oct 7 2008 10:44 pm
Subject: Re: KML works KMZ fails
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google