On Mar 10, 6:34 am, allanlundhansen <[email protected]> wrote:
> When building KML for Google Earth, you can define which icons the
> placemark should use, take a look at the KML below:
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <kml xmlns="http://www.opengis.net/kml/2.2";>
>     <Document>
>         <name>Map.kml</name>
>         <Placemark>
>             <name>Place 1</name>
>             <Style>
>                 <IconStyle>
>                     <icon>
>                         <href>http://maps.google.com/mapfiles/kml/
> paddle/wht-blank.png</href>
>                     </icon>
>                 </IconStyle>
>             </Style>
>             <description>Some place 1</description>
>             <Point>
>             <coordinates>8.4904804,55.4914017,0</coordinates>
>             </Point>
>         </Placemark>
>         <Placemark>
>             <name>Place 2</name>
>             <Style>
>                 <IconStyle>
>                     <icon>
>                         <href>http://maps.google.com/mapfiles/kml/
> paddle/wht-blank.png</href>
>                     </icon>
>                 </IconStyle>
>             </Style>
>             <description>Some place 2</description>
>             <Point>
>             <coordinates>8.6471395,55.4233017,0</coordinates>
>             </Point>
>         </Placemark>
>         <Placemark>
>             <name>Place 3</name>
>             <Style>
>                 <IconStyle>
>                     <icon>
>                         <href>http://maps.google.com/mapfiles/kml/
> paddle/wht-blank.png</href>
>                     </icon>
>                 </IconStyle>
>             </Style>
>             <description>Some place 3</description>
>             <Point>
>             <coordinates>8.7616501,55.3266983,0</coordinates>
>             </Point>
>         </Placemark>
>     </Document>
> </kml>
>
> The above works fine for Google Earth, but in Google Maps it show the
> standard icon (blue balloon with a dot inside).
>
> How can I get Google Maps to display other icons?

The map referred to by this thread:
http://groups.google.com/group/Google-Maps-API/browse_frm/thread/2e89c05a8b6c87bb/1a49fcf9b65c8c19?hl=en&lnk=gst&q=custom+icons+kml#1a49fcf9b65c8c19

had custom icons from KML.  However, it doesn't seem to be live
anymore.  I can't remember whether he was using one of the third party
kml parsers or not, but you might have to do that:
EGeoXml: http://econym.org.uk/gmap/egeoxml.htm
GeoXml:  http://www.dyasdesigns.com/geoxml/
--~--~---------~--~----~------------~-------~--~----~
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