Using V2 maps.
Got it all basically working, including adding of markers.
However, I need to take action when the marker is tapped, so I've installed a handler:
thisMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {
@Override public boolean onMarkerClick(Marker marker) {
// Take some action here
return true;
}
}
);
Only problem is - onMarkerClick()
never gets called at all. Cannot see why - tried creating the listener when the map was originally created and also after the marker is put in place, no difference.
?