I am working on a google map. Actually I want this functionality when the user zooms the map or double taps on a map position it will behave like a super app. in uber map it became static when user zoomed or double tapped but i can't find this functionality in flutter map
I am using this google_maps_flutter package: ^2.1.1
Completer<GoogleMapController> completer; GoogleMap( myLocationEnabled: true, myLocationButtonEnabled: false, mapToolbarEnabled: false, zoomGesturesEnabled: true, zoomControlsEnabled: false, rotateGesturesEnabled: false, scrollGesturesEnabled: true, tiltGesturesEnabled: false, markers: locationData.locationMarkers.values.toSet(), initialCameraPosition: CameraPosition( target: LatLng(widget.lat, widget.long), zoom: 16.4746, ), onCameraMove: (position) { latitude = position.target.latitude; longitude = position.target.longitude; }, onCameraIdle: () async { if (latitude != null && longitude != null) { print("not workng"); geoCodeProvider.setLatitude(latitude); geoCodeProvider.setLongitude(longitude); } }, onMapCreated: (GoogleMapController controller) { widget.completer.complete(controller); }, )You can use this code to add gesture on google map
GoogleMap( initialCameraPosition: CameraPosition( target: LatLng(0, 0), ), gestureRecognizers: Set() ..add(Factory<TapGestureRecognizer>(() => TapGestureRecognizer())) );Handling the zoom level when the user interacts with the map
GoogleMap( zoomGesturesEnabled: true, tiltGesturesEnabled: false, onCameraMove:(CameraPosition cameraPosition){ print(cameraPosition.zoom); }, )Add this for the minimum or maximum zoom level on the map
minMaxZoomPreference: MinMaxZoomPreference(13,17)