Adnan Amjad
Adnan Amjad

Reputation: 2613

Add an Image in using Google Maps API v2 in Android

enter image description hereHow can I set an Image at the certain location in the Google Maps using Google Maps API and handle its click listener? Please provide the step by step solution? Note: I am not talking about Markers.

Upvotes: 2

Views: 3077

Answers (1)

gsysko
gsysko

Reputation: 988

I believe the easiest way to implement this would be to still use a marker, but set a custom icon.

Something like this should work: photoMarker = mMap.addMarker(new MarkerOptions().position(photoLatLng).icon(BitmapDescriptorFactory.fromResource(R.drawable.photo)));

See documentation here.

Upvotes: 1

Related Questions