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

[BUG] map rotation is always possible on web even with InteractiveFlag set to InteractiveFlag.none #1878

Closed
okoumea opened this issue May 8, 2024 · 2 comments
Labels
bug This issue reports broken functionality or another error invalid This bug could not be reproduced or does not exist, or is very low quality S: core Scoped to the core flutter_map functionality

Comments

@okoumea
Copy link

okoumea commented May 8, 2024

What is the bug?

When all interactions are disabled, user can still rotate the map on web.

How can we reproduce it?

setting interactionOptions to InteractionOptions(flags: InteractiveFlag.none)

FlutterMap(
                  options: MapOptions(InteractionOptions(flags: InteractiveFlag.none)
),

Rotate the map on web using ctrl + mouse click & drag

Do you have a potential solution?

No response

Platforms

web

Severity

Obtrusive: Prevents normal functioning but causes no errors in the console

@okoumea okoumea added bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing labels May 8, 2024
@josxha
Copy link
Contributor

josxha commented May 8, 2024

Thanks for the bug report. See the answer here #811 (comment)

@okoumea
Copy link
Author

okoumea commented May 8, 2024

Ok know its working, I didn't notice that there were 2 ways to disable rotation thank you !

  interactionOptions: InteractionOptions(
    cursorKeyboardRotationOptions: CursorKeyboardRotationOptions.disabled(),
    flags: InteractiveFlag.all & ~InteractiveFlag.rotate
  )

@JaffaKetchup JaffaKetchup added invalid This bug could not be reproduced or does not exist, or is very low quality S: core Scoped to the core flutter_map functionality and removed needs triage This new bug report needs reproducing and prioritizing labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error invalid This bug could not be reproduced or does not exist, or is very low quality S: core Scoped to the core flutter_map functionality
Projects
Status: Done
Development

No branches or pull requests

3 participants