【问题标题】:Overlays in KMZ not showingKMZ 中的叠加层未显示
【发布时间】:2015-09-28 12:24:55
【问题描述】:

地图在这里,http://rockymtngreenway.org/~greenway/GoogleAPImap.html

KMZ 是在 Google 地球中创建的。

这张地图上有三幅图像叠加,它们没有出现。

奇怪的是叠加层出现了一次,现在每次重新加载地图都会丢失叠加层。

难倒,谢谢。

【问题讨论】:

    标签: overlay kmz


    【解决方案1】:

    参考 KML 中的 GroundOverlays 使用的是 Google 地球扩展 <gx:LatLonQuad>,Google Maps API 不支持该扩展。

    Google Earth API 中支持的 KML 元素列表
    https://developers.google.com/kml/documentation/kmlelementsinmaps

    <GroundOverlay>
        <visibility>0</visibility>
        <Icon>
            <href>http://rockymtngreenway.org/~greenway/rockyMtnArsenalLabel9.png</href>
            <viewBoundScale>0.75</viewBoundScale>
        </Icon>
        <gx:LatLonQuad> ***
            <coordinates>
                -104.8533817983386,39.8660912769105,0 -104.7777966394869,39.8660912769105,0 -104.7777966394869,39.88672843848668,0 -104.8533817983386,39.88672843848668,0 
            </coordinates>
        </gx:LatLonQuad> ***
    </GroundOverlay>
    

    尝试使用LatLonBox 元素将您的 KML 转换为不使用 Google 地球扩展的标准 KML 2.2。

    此外,地面叠加层的可见性为 0(false),因此默认情况下不可见。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-30
      • 2021-08-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多