Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

278
Views
Google_maps pinch to zoom and double tap detection possible in Flutter..?

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); }, )
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

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)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!