javascript - Polyline Google Maps V3 中的标签

标签 javascript android google-maps text google-maps-api-3

<分区>

我想在 google maps api V3 中做类似的事情... 这可能吗?我非常感谢您的帮助,因为我没有使用谷歌地图的经验

更新: 我想像这样为我们自己的折线添加标签。

label
(来源:aerodromoschile.com)

最佳答案

我不确定您是否可以像这样完全做到这一点,但或者,您可以在其中添加 google.maps.marker,将位置保存到标记的标题中,然后在悬停/单击时添加监听器以显示此标题。

关于javascript - Polyline Google Maps V3 中的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20479988/

相关文章:

javascript - 如何强制 Raphael JS 输出为 svg

javascript - 在 es6 中创建多维映射数组

javascript - 切换按钮不起作用。没有显示 : none; at first click

android - 约束布局在 Android Studio 2.3 中的默认模板中给出错误

c# - 如何在 Entity FrameWork 中存储特定的 float

android - Geocoder.getFromLocationName 不适用于某些地方

javascript - 获取 eventAfterAllRender fullcalendar 中所有事件的事件 ID

android - 即时更改 UI 中的语言 Android

android - 通过 xml Button 内部的方法进行 Activity 和 Fragment 通信

java - 地理编码代码不起作用 - Googlemaps