how can i disable/enable dragging, zooming in a ‘map’ object. also how can i change the cursor to for example a plus sign and then change it back to default.
I have tried these but doesn’t work:
map.google.maps.MapOptions.disableDoubleClickZoom = true;
map.google.maps.MapOptions.draggable = false;
You have two options how to set map options:
to disable the zoom you may try to use
minZoomandmaxZoomoptions (set them to the same value aszoomoption), or you may try to setzoomControlto false,to change the cursor which is displayed over the map use
draggableCursoroption, i.e.map.setOptions({ draggableCursor: 'crosshair' });. To change back to default just set it tonull:map.setOptions({ draggableCursor: null });.