0

I am trying to change the style of a marker from a KML file in googlemaps. When I run the file in googleearth, the marker is different. When I run it in googlemaps it's just the same looking marker as before. Why is that happening?

Here's the beginning of the kml file:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.google.com/earth/kml/1">
<Document>

<Style id="bendigo">
<BalloonStyle>
    <text>$[description]</text>
</BalloonStyle>
<IconStyle>
    <Icon>
        <href>http://maps.google.com/mapfiles/kml/paddle/grn-blank.png</href>
    </Icon>
  </IconStyle>
</Style>

<name>kml_sample1.kml</name>
<Placemark>
 <name>Boat</name>
 <description><![CDATA[
  Boat<br />
  <p>Home page: <a href="google.com">google.com</a></p>
 ]]>
 </description>

 <styleUrl>#bendigo</styleUrl>

<Point>
<!--run a javascript to get data points-->
  <coordinates>7.666037,64.32565</coordinates>
</Point>

4

1 に答える 1

0

上記のKMLスニペットには、Placemark、Document、kmlの終了タグがありません。

修正すると、KMLをGoogleマップに読み込むことができ、問題なく表示されます(緑色のマーカー)。

KMLがGoogleマップでレンダリングされる最近の更新があり、これが一時的に影響を及ぼしている可能性がありますが、現在は正常に機能しているため、確信が持てません。あなたが今それがあなたにうまく見えることを確認するならば、それはおそらく問題でした。

于 2012-06-01T05:10:25.323 に答える