0

I have tried How to disable marker click event?,How do I disable click on a map marker in android? and How to disable android map marker click auto center link but still marker is tapable and it remove the displayed info-window.please suggest me a right solution.

CODE

Marker marker = mMap.addMarker(options);
        mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlng, 12.0f));
        mMap.setInfoWindowAdapter(new CustomInfoWindow());
        marker.showInfoWindow();/*Show infowindow by default.*/
        mMap.setOnInfoWindowClickListener(null);/*Disable click on info wndow.*/
        mMap.getUiSettings().setScrollGesturesEnabled(false);/*Disable map scrolling.*/
        mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {
            @Override
            public boolean onMarkerClick(Marker marker) {
                return true;
            }
        });
Community
  • 1
  • 1
Rahul
  • 2,374
  • 2
  • 22
  • 36

0 Answers0