Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Setting KML icon colors
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
MikeO  
View profile  
 More options Mar 6, 3:46 am
From: MikeO <oberdr...@gmail.com>
Date: Fri, 6 Mar 2009 00:46:19 -0800 (PST)
Local: Fri, Mar 6 2009 3:46 am
Subject: Setting KML icon colors
I would like to be able to display the google earth push-pin icons in
different colours according to different attribute values.

I am writing to KML from a csv input, filtering attribute values, and
then assigning color to the different feature streams.  Why is it that
I can manipulate the kml LABEL colors using the AttributeCreator and
setting the format attribute kml_label_color = 1,0,0

... but I cannot do the same to change the color of the push-pin kml
ICON colors?
kml_icon_color = 1,0,0

The writer documentations indicates these to be the correct format
attributes.  I am using FME 2009.

Thanks
Mike


    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.
uta.griw...@freenet.de  
View profile  
 More options Mar 7, 2:23 pm
From: uta.griw...@freenet.de
Date: Sat, 7 Mar 2009 11:23:59 -0800 (PST)
Local: Sat, Mar 7 2009 2:23 pm
Subject: Re: Setting KML icon colors
Hi Mike,

perhaps you can use the KMLStyler. There you can choose the icon and
set the color. Setting the color without setting the icon seems to
have no effect.

Kind regards
Uta

On 6 Mrz., 09:46, MikeO <oberdr...@gmail.com> wrote:


    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.
mark2atsafe  
View profile  
 More options Mar 9, 12:21 pm
From: mark2atsafe <mark.irel...@safe.com>
Date: Mon, 9 Mar 2009 09:21:23 -0700 (PDT)
Local: Mon, Mar 9 2009 12:21 pm
Subject: Re: Setting KML icon colors
Hi Mike
Using an icon - which is essentially a bitmap (bmp) image file - I
don't see how colour could be applied.

In fact, even when you don't specify the icon and just use the default
GE icon, it comes from:
http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png

That's yellow... and if you change the color in GE then you just tint
the yellow colour (eg I set it to blue and it comes out green).

I think what you need to do is use a different icon for each colour.
The default GE ones are:

http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png
http://maps.google.com/mapfiles/kml/pushpin/blue-pushpin.png
http://maps.google.com/mapfiles/kml/pushpin/grn-pushpin.png
http://maps.google.com/mapfiles/kml/pushpin/ltblu-pushpin.png
http://maps.google.com/mapfiles/kml/pushpin/pink-pushpin.png
http://maps.google.com/mapfiles/kml/pushpin/purple-pushpin.png
http://maps.google.com/mapfiles/kml/pushpin/red-pushpin.png
http://maps.google.com/mapfiles/kml/pushpin/wht-pushpin.png

Check out the icon gallery in GE, click on an icon and look at the top
text box to find out the location of an icon.

Hope this helps.

Mark

Mark Ireland, Senior Product Specialist
Safe Software Inc. Surrey, BC, CANADA
supp...@safe.com http://www.safe.com
Solutions for Spatial Data Translation, Distribution and Access

On Mar 7, 12:23 pm, uta.griw...@freenet.de wrote:


    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.
mark2atsafe  
View profile  
 More options Mar 9, 12:26 pm
From: mark2atsafe <mark.irel...@safe.com>
Date: Mon, 9 Mar 2009 09:26:24 -0700 (PDT)
Local: Mon, Mar 9 2009 12:26 pm
Subject: Re: Setting KML icon colors
Actually, in a flash of inspiration, it occurred to me that using the
White icon would be best because then you can colour it w/o it being
tinted.
ie in the KMLStyler set icon name to: http://maps.google.com/mapfiles/kml/pushpin/wht-pushpin.png
Then set the colour under Icon Color and it should give you what you
need.

The log file will complain it can't find the icon, but it will write
the value anyway.

Think this is probably better than using different icons per colour
(or easier at least)
Perhaps we should use the white icon by default in FME so that the
colour will be applied better.

Mark

Mark Ireland, Senior Product Specialist
Safe Software Inc. Surrey, BC, CANADA
supp...@safe.com http://www.safe.com
Solutions for Spatial Data Translation, Distribution and Access

On Mar 9, 9:21 am, mark2atsafe <mark.irel...@safe.com> wrote:


    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.
Mike & Dawn-Lee Oberdries  
View profile  
 More options Mar 9, 4:43 pm
From: "Mike & Dawn-Lee Oberdries" <oberdr...@gmail.com>
Date: Tue, 10 Mar 2009 09:43:50 +1300
Local: Mon, Mar 9 2009 4:43 pm
Subject: RE: [fme] Re: Setting KML icon colors
Thanks Mark, this gives me just what I am after.  When I specify the
push-pin as white the kml_icon_color format variable noew behaves as I would
want it.

Cheers
Mike


    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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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