Reputation: 295
I got a way to remove all the default places from the map , i would like to add a place icon i.e. a shape that represent what is this place activity .
mMap.addMarker(new MarkerOptions()
.position(newLocation)
.visible(true)
.icon(BitmapDescriptorFactory.fromResource(R.raw.red)));
this code change the shape of the marker to a image , but i want to add the default shape of place which is the small circles representing the place activity and make it clickable as this
Upvotes: 1
Views: 913
Reputation: 21
You can simply add custom icon from drawables, for example:
mMap.addMarker(new MarkerOptions()
.position(newLocation)
.visible(true)
.icon(BitmapDescriptorFactory.fromResource(R.drawable.your_icon));
Upvotes: 1