I want to be able to click the blue dot (my location) that is shown on the map. Is there anyway to get a callback from that click?
Thanks, Martijn
I want to be able to click the blue dot (my location) that is shown on the map. Is there anyway to get a callback from that click?
Thanks, Martijn
One possible workaround might be drawing a
Marker(with a similar icon) on top of the My Location dot so you can receive the correspondingonMarkerClick()callback. This would also require removing the marker and adding it to the new location everytime there's a location update event, which you can listen to by implementingOnMyLocationChangeListener.EDIT: the
OnMyLocationChangeListenerinterface is now deprecated, one should use instead the newLocationClientand the associatedLocationListener.So the relevant code could look something like this (I hadn't actually tested this):