Search code examples
flutterleafletgesture

How to detect zoom change in flutter leaflet map?


How to detect 'zoom in' and 'zoom out' in flutter leaflet map ?


Solution

  • Assuming you are using flutter_map package, in the MapOptions there is a onPositionChanged callback function. It should return you the zoom details.