You can use onMyLocationButtonClick()
this can be used to know when the user has clicked the button and returns true
if the listener has consumed the event. False otherwise. The default behavior is for the camera move such that it is centered on the user location.
//add location button click listener
map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener(){
@Override
public boolean onMyLocationButtonClick()
{
//TODO: Any custom actions
return false;
}
});
You can also regionchanged
event. This event fires when the user either changes the zoom level or pans the Map View. The event returns the new latitude and longitude coordinates as well as delta values.
mapview.addEventListener('regionchanged', function(e){
Ti.API.info(e.type);
Ti.API.info(e.latitude + "," + e.longitude);
});
Here's a related SO ticket, discuss about regionchanged events: On zoom event for google maps on android