【问题标题】:Go back after open google map by href in Android App在Android App中通过href打开谷歌地图后返回
【发布时间】:2015-07-03 17:11:12
【问题描述】:

在我的 Android 应用程序中,我有一个链接可打开 Google 地图 URL,以向用户展示如何从其位置前往某个地点。问题是链接在我的应用程序上打开,我无法按手机的返回快捷方式返回。

在我的<a>href 属性中,我使用的是这个网址:

http://maps.google.com/maps?daddr={{item.latitude}},{{item.longitude}}&ll=

我正在使用 Ionic 和 AngularJS。

我已经尝试过这个解决方案:Can't go back after clicking on a Google Maps link,但我不知道如何使用geo: 协议在上述网址中进行相同的查询。

有人知道怎么解决吗?

【问题讨论】:

    标签: android angularjs google-maps ionic back-button


    【解决方案1】:

    对于geo: protocol,请尝试以下代码:

    href="geo:<lat>,<long>?q=<lat>,<long>(Label+Name)">Locate</a>

    根据需要更改latlong

    更多详情请参考here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-18
      • 1970-01-01
      相关资源
      最近更新 更多