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

Add secondary tap to MapOptions #1448

Merged
merged 5 commits into from
Mar 29, 2023

Conversation

TesteurManiak
Copy link
Contributor

@TesteurManiak TesteurManiak commented Feb 17, 2023

Fix #1444

I've added a property onSecondaryTap to MapOptions which is usually associated to the right-click action. To implement this behavior I had to remove the dependency to the package positioned_tap_detector_2 which I've re-implemented directly inside flutter_map as it seems like this package is not maintained anymore.

You can try the gesture in the example app. I've tested it on MacOS but didn't try on windows or linux but I trust that Flutter is able to recognize the right-click action on those platforms.

P.S: I had to re-generate the platform sources for the project to compile hence why there is changes for the android, ios, web and macos folders in example;

@TesteurManiak TesteurManiak added the feature This issue requests a new feature label Feb 17, 2023
Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM AFAIK. Thanks :)

@JaffaKetchup JaffaKetchup merged commit ac15548 into fleaflet:master Mar 29, 2023
@TesteurManiak TesteurManiak deleted the feat/add-seconbdary-tap branch March 29, 2023 15:43
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add onSecondaryTap (right-click for windows) callback
2 participants