2

I want to stick labels on the screen ( not marker ) like this :

enter image description here

how can I add this blue text to the map beside marker?

faeze saghafi
  • 650
  • 10
  • 25

1 Answers1

-1

You need to create a custom Bitmap with the blue text and icon and set it using the icon method of Marker object.

// add marker to Map
mMap.addMarker(new MarkerOptions()
    .position(USER_POSITION)
    .icon(BitmapDescriptorFactory.fromBitmap(YOUR_CUSTOM_BITMAP))
    // Specifies the anchor to be at a particular point in the marker image.
    .anchor(0.5f, 1));

Detailed example can be found here

theapache64
  • 10,926
  • 9
  • 65
  • 108