Open josxha opened 1 year ago
This would make the following changes:
final int flags;
// turns into
final InteractiveFlags flags;
flags: InteractiveFlags.all - InteractiveFlags.rotate,
// turns into
flags: InteractiveFlags.all(rotate: false),
if (InteractiveFlag.hasDoubleTapZoom(newOptions.flags)) {
// turns into
if (newOptions.flags.doubleTapZoom) {
If we are looking at this, could it be possible to add a feature request to be able to get a LatLng from a click on the map please?
Hi @hobleyd,
This is already possible. Use onTap
inside MapOptions
. Unless I'm misunderstanding something?
Thanks. I missed that. Humblest apologies.
No worries!
Currently blocked by:
I think the rough rule on scope of animations is I think the rough rule is we provide basic animations in response to gestures only. It's for plugins to provide animations for programmatic controls.
Motivation
As mentioned by @JaffaKetchup in https://github.com/fleaflet/flutter_map/issues/1529#issue-1718239936, "much of the [gesture handling] code that does this was written in the first few releases, and has not been significantly changed since. [...] Gesture handling at this low-level often differs slightly between platforms, which means that manual testing succeeds on one platform, but a bug occurs on another."
Rewrite Proposals
Use boolean fields in InteractiveFlag and MultiFingerGesture. This simplifies internal usage, is more beginner friendly in our public API and has no performance penalty. I'll write some code examples in the next comment.https://github.com/fleaflet/flutter_map/issues/1732If feasible do the following changes:
More resources