我可以在 Google 地球上显示 KML。现在我想在地图上显示相同的内容。这怎么可能?这是我的 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>
提前谢谢..</p>