【问题标题】:Link to Apple Maps with Coordinates and Label使用坐标和标签链接到 Apple 地图
【发布时间】:2014-09-15 09:02:12
【问题描述】:

我正在编写 HTML <a> 标记以从 Cordova 应用程序(即网页)打开 iOS 上的本机 Apple Maps 应用程序。这是我目前所拥有的:

<a href="maps:ll=38.897096,-77.036545" class="context-block-button map-button" id="map-button-1"><i class="ss-map icon-left"></i><span>Open in map (maps:)</span></a>

这很好用,将在华盛顿特区的白宫打开该应用程序。那是正确的去处。但是有人知道我如何以某种方式向地图添加标签吗?我尝试使用?q=Label,但这只会在将我带到指定坐标后进行应用搜索。

谢谢

【问题讨论】:

    标签: html ios cordova apple-maps


    【解决方案1】:

    使用普通链接:

    <a href="
        http://maps.apple.com/?lsp=9902&auid=4158007438164491913&sll=38.897517,-77.036542&q=The%20White%20House&hnear=1600%20Pennsylvania%20Ave%20NW,%20Washington,%20DC%2020500-0003,%20United%20States
    ">
    
    <span>Open in map (maps:)</span>
      
    </a>
    • 通过此链接,系统会询问您是否要在 地图

    • MAPS 转到显示标签的坐标!

    • 但是,由于某种原因,它有时会打开 GOOGLE-MAPS(在正确的坐标 不过)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-05
      • 2015-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多