I have map and marker on it. I need to do when user pushes this marker or pushes near this marker that app wil do "onMapClick listener" and return me coordinates of click instead of "onMarkerClick". It is somehow possible to ignore marker click for one marker and make onMapClick instead?
I tried this, but it don't do anything:
mMap.setOnMarkerClickListener(new OnMarkerClickListener(){
@Override public boolean onMarkerClick(Marker arg0) { if(arg0.getSnippet().equals("bad_marker")){ mMap.setOnMapClickListener(new OnMapClickListener() { @Override public void onMapClick(LatLng latLng) { mapClick(latLng); } }); }});