我可以在Google地球上顯示KML。 現在我想在地圖上顯示相同的內容.. 這怎麼可能? 這裏是我的KML附...在Google地圖上使用KML及其名稱顯示多邊形或圓形
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Hide and show labels</name>
<Style id="sn_hide">
<IconStyle>
<scale>0</scale>
</IconStyle>
</Style>
<StyleMap id="msn_hide">
<Pair>
<key>normal</key>
<styleUrl>#sn_hide</styleUrl>
</Pair>
</StyleMap>
<Placemark>
<name>Placemark 1</name>
<description>Label hidding</description>
<styleUrl>#sn_hide</styleUrl>
<Point>
<coordinates>-119.232195,36.016021</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Placemark 2</name>
<description>Label hidding</description>
<styleUrl>#sn_hide</styleUrl>
<Point>
<coordinates>-119.232195,36.0162</coordinates>
</Point>
</Placemark>
</Document>
</kml>
在此先感謝..
你要顯示它在什麼地圖?[谷歌地圖}(http://maps.google.com)?還是谷歌Maps API v3地圖?對於您的KML而言,必須在公開的網站上發佈。 – geocodezip