静谷歌地图:是否有可能文本添加到标记 [英] Static Google Map: Is it possible to add Text to the Marker

查看:181
本文介绍了静谷歌地图:是否有可能文本添加到标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用程序,我已经放在ImageView的。我呼吁下面提到的URL来获取静态地图图像(位图图像​​)。我放置在该位图图像到ImageView的。
我跟着用于显示静态地图的开​​发者网站。
<一个href=\"http://maps.googleapis.com/maps/api/staticmap?center=Brooklyn%20Bridge,New%20York,NY&zoom=13&size=600x300&maptype=roadmap&markers=color%3ablue%7Clabel%3aXYZ%7C40.702147,-74.015794&markers=color%3agreen%7Clabel%3aG%7C40.711614,-74.012318&markers=color%3ared%7Ccolor%3ared%7Clabel%3aC%7C40.718217,-73.998284&sensor=false\"相对=nofollow>静态地图网址

In my Android application , i have placed on ImageView. And I call the below mentioned url to get the static map image (bitmap image). And i placed that bitmap map image into the imageview. I followed the developer site for displaying the static map. Static Map URL

修改的增加​​Android的标签。

Edit Added Android tag.

我只是想需要我的自定义文本到我想要显示的标记一样,而不是G,C,S的开始中东结束

I just want to need my custom text to the markers like instead of G,C,S i want to display "Start","Middle","End".

推荐答案

在拉布勒只添加一个字符静谷歌地图,
<一href=\"https://maps.googleapis.com/maps/api/staticmap?size=300x300&zoom=getZoom%28%29&markers=color:blue|\" rel=\"nofollow\">https://maps.googleapis.com/maps/api/staticmap?size=300x300&zoom=getZoom%28%29&markers=color:blue|label:R|23.01181690,72.52326790&key=\"Your谷歌浏览器密钥

add only one char on lable in static google map, https://maps.googleapis.com/maps/api/staticmap?size=300x300&zoom=getZoom%28%29&markers=color:blue|label:R|23.01181690,72.52326790&key="Your Google Browser Key"

这篇关于静谷歌地图:是否有可能文本添加到标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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