Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid Marker (Google Maps for Android API V2) to center itself on map on click

I have geolocated events in my Map that I'm adding with Markers, and when I click on them, I just want them to change without being centered.

Is there any way to override the markers being centered (and onCameraChanged being called) when I click on a Marker?

like image 704
Charlie-Blake Avatar asked Apr 18 '13 08:04

Charlie-Blake


1 Answers

Add OnMarkerClickListener to the GoogleMap and return true in onMarkerClick.

like image 193
MaciejGórski Avatar answered Sep 28 '22 02:09

MaciejGórski