本文介绍了将编号标签添加到Google地图标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以知道如何使用谷歌地图API添加编号标签到Google地图标记吗?只需添加标签,而不是尝试更改图标。如果你不想为每个标记使用自定义图标,那么我建议看看创建一个标签类使用OverlayView,然后将位置绑定到标记。
或者你可以看看如下所示: github/nmccready/google-maps-utility-library-v3-infobox
May I know how to add numbering label to google map marker using google map api? Just add label, not trying to change the icon. Thank you.
解决方案If you don't want to use custom icons for each marker then I suggest looking into creating a label class with the OverlayView and then binding the position to the marker.
Or you could look at using something like: github/nmccready/google-maps-utility-library-v3-infobox
更多推荐
将编号标签添加到Google地图标记
发布评论