地图标记与谷歌地图Android的API V2文本 [英] Map Markers with text in Google Maps Android API v2

查看:196
本文介绍了地图标记与谷歌地图Android的API V2文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经想出了这个职位,但它是为德precated谷歌地图API

I have came up with this post but it is for the deprecated Google Maps API

<一个href="http://tech.truliablog.com/2012/02/23/custom-map-markers-for-android-google-maps/">http://tech.truliablog.com/2012/02/23/custom-map-markers-for-android-google-maps/

在新的API,我无法找到一个简单的方法来做到这一点。事实上,我不能这样做的。

In the new API, I could not find an easy way to do this. In fact, I could not do it at all.

Basicly我想有TextViews与9Patch抽拉作为文本的背景在地图上的标记。 Trulia的还在做着它在当前应用程序中的新的API第2版。你可以在这里检查

Basicly I want to have TextViews as a Marker on the map with 9Patch drawable as a background of the text. Trulia is still doing it with the new API v2 in their current app. You can check it here

我怎样才能做到这一点?

How can I do this?

推荐答案

克里斯·布罗德福特创造了一个实用工具库正是这么做的。

Chris Broadfoot created a utility library that does exactly that.

该库可以在这里找到:<一href="https://github.com/googlemaps/android-maps-utils">https://github.com/googlemaps/android-maps-utils

另请参阅此短片: http://www.youtube.com/watch?v=nb2X9IjjZpM

这篇关于地图标记与谷歌地图Android的API V2文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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