public GoogleMapWrapper(Context context, GoogleMap map) { this.context = context; googleMap = map; googleMap.getUiSettings().setMyLocationButtonEnabled(true); googleMap.getUiSettings().setRotateGesturesEnabled(false); googleMap.getUiSettings().setTiltGesturesEnabled(false); googleMap.getUiSettings().setZoomControlsEnabled(true); // clickableBitmap.eraseColor(Color.RED); map.setOnMarkerClickListener( new GoogleMap.OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { return onLocationMarkerTap(marker) || onMarkerTap(marker); } }); }
@Override public void setZoomControlsEnabled(boolean zoomControlEnabled) { googleMap.getUiSettings().setZoomControlsEnabled(zoomControlEnabled); }