将编号标签添加到Google地图标记

编程入门 行业动态 更新时间:2024-10-15 02:32:53
本文介绍了将编号标签添加到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地图标记

本文发布于:2023-06-01 18:57:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/422856.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标记   编号   标签   地图   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!