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

OnTap click delay problem #724

Closed
princebb opened this issue Aug 10, 2020 · 2 comments
Closed

OnTap click delay problem #724

princebb opened this issue Aug 10, 2020 · 2 comments

Comments

@princebb
Copy link

princebb commented Aug 10, 2020

Can you provide a configuration to advoid adding the onDoubleTap event? Because I am using fluttermap's onTap click event to draw points, found that there is a delay until the drawing is completed.I want to improve the user experience, and I don’t need the onDoubleTap zoom event.

FlutterMap(
                  mapController: widget.mapController,
                  options: MapOptions(
                      center: state?.center,
                      zoom: state?.zoom,
                      onTap: _mapClickEvent,
                      plugins: mapPlugins)

Thanks.

@maRci002
Copy link
Contributor

In PR #719 you are able to disable certain interactions. There are move, fling, pinchZoom, doubleTapZoom, rotate interactions.

You need to provide your own interactiveFlags to MapOptions like this:
interactiveFlags: InteractiveFlag.rotate | InteractiveFlag.pinchZoom  | InteractiveFlag.fling | InteractiveFlag.move

@princebb
Copy link
Author

Thanks, let me take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants