changing color of default yellow pushpin

2,721 views
Skip to first unread message

santaklawze

unread,
Aug 22, 2008, 9:58:27 AM8/22/08
to KML Developer Support - Getting Started with KML
Hi guys

Is it possible to change the color of the default yellow pushpin for
placemarks without using the iconstyle element.

Thanks in advance
Best regards
Zam Shabeer Thahir

barryhunter [KML Guru]

unread,
Aug 22, 2008, 12:00:44 PM8/22/08
to KML Developer Support - Getting Started with KML
As far as I know the only way to change the colour is to use the
<color> or <Icon> tags, both of which are children of <IconStyle>

You can use <styleUrl> to reference common styles, if you are worried
about large amounts of duplication in creating lots of <Style> tags.

Vee Why

unread,
Oct 6, 2008, 5:04:02 PM10/6/08
to KML Developer Support - Getting Started with KML
Barry,

How/Where would I place the code for a red icon in this kml code?. I
am new to KML coding and would appreciate you or someone giving a real-
world example code.

Thanks in advance,

Vee Why

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<name>testfile</name>
<Folder>
<open>1</open>
<Placemark>
<description>SOMEHWERE </description>
<address>SOMEHWERE STREET,N3, London, UK </address>
<name>A PLACE CALLED SOMEHWERE STREET, London, UK</name>
</Placemark>
</Folder>
</Document>
</kml>
> > Zam Shabeer Thahir- Hide quoted text -
>
> - Show quoted text -

Roman N

unread,
Oct 8, 2008, 3:01:01 AM10/8/08
to KML Developer Support - Getting Started with KML
There's a relevant thread at:

http://groups.google.com/group/kml-support-advanced/browse_thread/thread/e6d6024fb5d46681/e02f7f7343d07a0a

in which I posted a few snippets.

- Roman
Reply all
Reply to author
Forward
0 new messages