ahmed osama
ahmed osama

Reputation: 295

Android adding place icon in google maps

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 the final shape of the map

Upvotes: 1

Views: 913

Answers (1)

Kacper
Kacper

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

Related Questions