【问题标题】:How to add html link on multiple location on google map?如何在谷歌地图上的多个位置添加 html 链接?
【发布时间】:2016-07-04 04:23:02
【问题描述】:

我使用本教程 https://www.create.net/support/218-how-to-pin-point-multiple-locations-on-google-maps.html 在我的 gmap 上添加多个位置。而且,它工作正常。

但是,我想在描述中添加一个 HTML 链接。我试图在每个位置的描述字段中添加代码<html> <a href="#"> Sample link </a> </html>,但它似乎不接受 html 代码。

Image shows it's not accepting html

我怎样才能做到这一点?

因此,如果用户单击标记位置,他/她可以单击超链接。

【问题讨论】:

    标签: javascript jquery html google-maps maps


    【解决方案1】:

    如果你只是输入带有 http(s) 的 URL,它将变成一个超链接。

    但是,您不能以任何其他方式设置它的样式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-13
      • 1970-01-01
      • 1970-01-01
      • 2021-09-12
      • 2016-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多