Map Markers with text in Google Maps Android API v2

tasomaniac picture tasomaniac · Jul 24, 2013 · Viewed 35.3k times · Source

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

Trulia current app

How can I do this?

Answer

MaciejGórski picture MaciejGórski · Jul 24, 2013

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