问题描述
我想出了这篇文章,但它是针对已弃用的 Google Maps API
创建了一个实用程序库,用于正是这样做的.
图书馆在这里可用:https://github.com/googlemaps/android-maps-工具
另见此短片:http://www.youtube.com/watch?v=nb2X9IjjZpM
I have came up with this post but it is for the deprecated Google Maps API
http://tech.truliablog.com/2012/02/23/custom-map-markers-for-android-google-maps/
In the new API, I could not find an easy way to do this. In fact, I could not do it at all.
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.
The library is available here: https://github.com/googlemaps/android-maps-utils
Also see this short video: http://www.youtube.com/watch?v=nb2X9IjjZpM
这篇关于Google Maps Android API v2 中带有文本的地图标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!