When changes happen to
FlutterMap's internal state, such as a change to the current position or zoom, it emits a
MapEvent, which can be handled by you.
There's two ways to catch all emitted
MapEvents, and use them/the
These methods expose the raw
MapEvent, and is recommended in cases where multiple events need to be caught, or there's no more specific callback method available in
If only a couple of events need to be caught, such as just an
onTaphandler, it is possible to avoid handling the raw
MapOptionshas callbacks available for the following events:
MapEventTapevent may be emitted (or the
onTapcallback called) 250ms after the actual tap occurred, as this is the acceptable delay between the two taps in a double tap zoom gesture.
This disables the double tap handler, so the
MapEventTapis emitted 'instantly' on tap.