Hi all, I need your help to disable zoom and drag on my map using google maps capacitor.
I currently use this setting but it only prevents zoom on web and not on android.
this.map = await GoogleMap.create({
id: 'my-map',
apiKey: environment.mapsKey,
element: this.mapRef.nativeElement,
forceCreate: true,
config: {
center: {
lat: position['coords'].latitude,
lng: position['coords'].longitude
},
disableDefaultUI: true,
streetViewControl: false,
zoomControl: false,
mapTypeControl: false,
rotateControl: false,
fullscreenControl: false,
// minZoom: 16,
zoom: 14,
gestureHandling: 'none',
scrollwheel: false,
scaleControl: false,
isFractionalZoomEnabled: false,
disableDoubleClickZoom: false,
draggableCursor: 'none',
},
});
I appreciate your help.