Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Google Map Marker With Label?

I'm getting on the server as a bitmap pictures(.png) and creating marker.

Marker marker;

                        marker = gmap.addMarker(new MarkerOptions()
                        .position(new LatLng(vehicle.getLat(), vehicle.getLong()))
                        .visible(true)
                        .icon(BitmapDescriptorFactory.fromBitmap(result)));

I would like to add custom text on my bitmap result bottom.

here we have an example but I can not http://binwaheed.blogspot.com.tr/2011/05/android-display-title-on-marker-in.html

Sample pic http://commondatastorage.googleapis.com/maps-devrel/utility-thumbnails/marker_with_label.png

Help me please. Thank u.

like image 484
SametG Avatar asked Jun 30 '26 15:06

SametG


1 Answers

You can use IconGenerator (previously named BubbleIconFactory) from the android-map-utils library for effects like this:

BubbleIconFactory Results

like image 61
CommonsWare Avatar answered Jul 03 '26 06:07

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!