【问题标题】:Button Link to Google Maps not Working on Chrome谷歌地图的按钮链接在 Chrome 上不起作用
【发布时间】:2019-09-12 01:33:06
【问题描述】:

我有一个按钮,其链接地址如下:

<button>
     <a ng-href="https://maps.google.com/maps?q={{Store.StoreAddress}}" target="_blank">

      <span ng-bind-html="Store.StoreAddress"></span>
      </a>
</button>

当点击打开谷歌地图而不是在 Chrome 中时,按钮会指向 Fire Fox 中的地址 这是为什么呢?

【问题讨论】:

    标签: google-maps button href


    【解决方案1】:

    试试这个:

    https://www.google.com/maps/search/?api=1&query={{Store.StoreAddress}}
    

    地图网址的有用链接: https://developers.google.com/maps/documentation/urls/guide#search-action

    【讨论】:

      猜你喜欢
      • 2017-11-26
      • 2018-12-02
      • 2011-08-11
      • 1970-01-01
      • 2016-11-19
      • 1970-01-01
      • 2015-03-20
      • 1970-01-01
      • 2012-03-23
      相关资源
      最近更新 更多