fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
https://pub.dev/packages/flutter_map
BSD 3-Clause "New" or "Revised" License
2.76k stars 860 forks source link

[FEATURE] Two fingers tap to zoom out #1432

Open russellmiddleton opened 1 year ago

russellmiddleton commented 1 year ago

What do you want implemented?

Is it possible to zoom out by two fingers tap like Google Maps or Apple Maps?

What other alternatives are available?

No response

Can you provide any other information?

No response

Platforms Affected

Android, iOS

Severity

Minimum: Not required for my use

Requirements

Spyy004 commented 1 year ago

Is somone working on this? If not, I would like to work on this feature.

JaffaKetchup commented 1 year ago

Hi @Spyy004, I don't believe anyone is working on this specifically, although it may conflict with @josxha's work on gestures, so I'll let him confirm.

Spyy004 commented 1 year ago

Okay!

josxha commented 1 year ago

Hi @Spyy004, I'm the person who is working on the gesture system rewrite over in https://github.com/fleaflet/flutter_map/issues/1715. You can start working on the feature right now if you like. I'm going to merge your changes afterwards into the rewrite.

Spyy004 commented 1 year ago

Cool thanks!

Spyy004 commented 1 year ago

So I am a bit confused on how to move ahead. I know what I have to do but I want to know the right way to do it. If I want to detect two finger taps, I would need to know the pointerCount details which is provided by ScaleStartDetails. Currently when I tap with two fingers, the onTap triggers but there is no way to figure out number of pointers touching the screen because TapPosition class doesn't give me that detail. So should I modify the Tap position class and handle the two finger tap in the ontap method itself or should I create new methods in position_tap_detector_2 and handle the two finger tap. A little guidance would be helpful!

josxha commented 12 months ago

In that case it's probably better for you to wait until the rewrite is finished. It's probably more straight forward to implement it afterwards.

VEGAC062 commented 1 week ago

Hello, Do we know if this feature is coming or being worked? I'm interested on this one