1
votes

I have written a program that writes kml files that display well in Google Earth, but when I try them on Google Maps, they malfunction often. They have passed feed validator and other checkers, but when I click the placemark, I get an empty address: popup, and fly to lat 0, long 0, off the African coast. I have stripped out everything, and am left with:

<?xml   version="1.0" encoding="UTF-8"?>
<kml    xmlns="http://www.opengis.net/kml/2.2"
    xmlns:kml="http://www.opengis.net/kml/2.2" 
        xmlns:atom="http://www.w3.org/2005/Atom">
<Document  id="DOC1">
    <name>sample memberships Kml File</name>
    <open>1</open>
        <description>remove xmlns gx</description>
    <Folder id="FLD1">
        <name>BusinessMembers</name>
        <open>1</open>
        <description>BluePushpin</description>
        <Placemark id="PMA">
            <name>A member</name>
            <open>1</open>
            <address>Fayette County</address>
                <description>a</description>
            <Point id="PTA">
                <coordinates>-84.41593,37.916132</coordinates>
            </Point>
        </Placemark>
    </Folder>
</Document>
</kml>

I cannot see anything wrong with this. The file is fetched from Google sites.

Anybody see something I don't ?

1

1 Answers

1
votes

Try taking out the address element, it's not supported in Google Maps. Here's a list of supported elements: https://developers.google.com/kml/documentation/kmlelementsinmaps