flutter_map icon indicating copy to clipboard operation
flutter_map copied to clipboard

[FEATURE] Two fingers tap to zoom out

Open cdf0f3 opened this issue 3 years ago • 9 comments

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

  • [X] I agree to follow this project's Code of Conduct
  • [X] I am using the latest stable version of this package
  • [X] I have checked for similar feature requests which may be duplicates

cdf0f3 avatar Jan 18 '23 08:01 cdf0f3

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

Spyy004 avatar Nov 08 '23 09:11 Spyy004

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.

JaffaKetchup avatar Nov 08 '23 09:11 JaffaKetchup

Okay!

Spyy004 avatar Nov 08 '23 09:11 Spyy004

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.

josxha avatar Nov 08 '23 11:11 josxha

Cool thanks!

Spyy004 avatar Nov 08 '23 11:11 Spyy004

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!

Spyy004 avatar Nov 11 '23 10:11 Spyy004

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.

josxha avatar Nov 19 '23 09:11 josxha