5

Here is the Custom Map Marker icon and on the above **white round** part i have to set imageIt is one of the image coming for Webservice which i need to set background of the marker i mean to set on the **white round** part

I have a custom image for Google Marker but another image i have to set on its background.

Is it possible to set background image of a map Marker?

Sudhansu
  • 780
  • 1
  • 9
  • 28

2 Answers2

2

Yes ,You can

Try this so question How to create a custom-shaped bitmap marker with Android map API v2

Also read this

Community
  • 1
  • 1
Abx
  • 2,852
  • 4
  • 30
  • 50
1

From the answer of @Abx

You can add custom marker like that,

googleMap.addMarker(new MarkerOptions()
            .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_marker_me))
            .anchor(0.5f, 1.0f) // Anchors the marker on the bottom left
            .position(new LatLng(latitude, longitude)));

Thanks to @Abx

Nils
  • 647
  • 6
  • 16