如何在Google地图的标记旁显示标签? [英] How to display a label next to a Marker for Google Maps?

查看:173
本文介绍了如何在Google地图的标记旁显示标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Google地图上的标记旁边显示文字标签。我之前使用过Virtual Earth,并且刚刚开始使用Google地图。我尝试设置标题属性,但只改变翻转文本。

I would like to display a text label next to the markers on google maps. I've used Virtual Earth before and I'm just starting to use Google Maps. I tried setting the Title property but that only changes the roll over text.

有没有办法在标记下方显示一小段文字,当用户放大,平铺和使用地图时,这些文字会留在那里?

Is there a way to display a small line of text underneath a marker that will stay there as the user zooms, pans and uses the map?

预先感谢!

推荐答案

有一个很好的标签类 here ,但您必须将其与标记一起添加。

There's a good label class here, though you'll have to add it alongside the markers.

这篇关于如何在Google地图的标记旁显示标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆