【问题标题】:Google Maps: Repeat GroundOverlay images along x-axis when scrolling谷歌地图:滚动时沿 x 轴重复 GroundOverlay 图像
【发布时间】:2018-06-05 14:11:46
【问题描述】:

有没有一种方法可以创建使用 GroundOverlay 图像的 .kml 图层的无缝滚动?目前我有一个具有以下属性的 kml 文件:

<name>Real-Time</name>
<Icon>
    <href>http://tropicalwx.us/kml/output.png</href>
    <viewBoundScale>0.75</viewBoundScale>
</Icon>
<LatLonBox>
    <north>89.99</north>
    <south>-89.99</south>
    <east>179.99</east>
    <west>-179.99</west>
</LatLonBox>

但是,当我移过东 180 度或西 -180 度时,图像不会重复(见下图)。由于我的图像是一个完整的全局拼接图像,我怎样才能让它在两边都无缝?

【问题讨论】:

    标签: google-maps kml


    【解决方案1】:

    这个问题的答案是,你不能。使用 Google 地图 API 是不可能的。答案是为那些想知道(很长)解决方案的人使用我自己的带有 Leaflet javascript 的地图服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-03-23
      • 1970-01-01
      • 1970-01-01
      • 2011-06-15
      • 2014-04-22
      • 2018-01-23
      • 1970-01-01
      相关资源
      最近更新 更多