Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Two fingers tap to zoom out #1432

Open
3 tasks done
russellmiddleton opened this issue Jan 18, 2023 · 7 comments
Open
3 tasks done

[FEATURE] Two fingers tap to zoom out #1432

russellmiddleton opened this issue Jan 18, 2023 · 7 comments
Labels
feature This issue requests a new feature P: 3 (low) (Default priority for feature requests) S: core Scoped to the core flutter_map functionality
Milestone

Comments

@russellmiddleton
Copy link

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

@russellmiddleton russellmiddleton added the feature This issue requests a new feature label Jan 18, 2023
@JaffaKetchup JaffaKetchup added the P: 3 (low) (Default priority for feature requests) label Jun 19, 2023
@Spyy004
Copy link

Spyy004 commented Nov 8, 2023

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

@JaffaKetchup
Copy link
Member

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
Copy link

Spyy004 commented Nov 8, 2023

Okay!

@josxha
Copy link
Contributor

josxha commented Nov 8, 2023

Hi @Spyy004, I'm the person who is working on the gesture system rewrite over in #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
Copy link

Spyy004 commented Nov 8, 2023

Cool thanks!

@Spyy004
Copy link

Spyy004 commented Nov 11, 2023

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
Copy link
Contributor

josxha commented Nov 19, 2023

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 josxha added this to the v7.0 milestone Dec 2, 2023
@JaffaKetchup JaffaKetchup added the S: core Scoped to the core flutter_map functionality label Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue requests a new feature P: 3 (low) (Default priority for feature requests) S: core Scoped to the core flutter_map functionality
Projects
Status: To do
Development

No branches or pull requests

4 participants