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

Ability to rotate the map on web #16

Closed
androidseb opened this issue Aug 2, 2023 · 8 comments
Closed

Ability to rotate the map on web #16

androidseb opened this issue Aug 2, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@androidseb
Copy link
Owner

It is currently not possible to rotate the map on web using a PC. This item is about making this possible.

@androidseb androidseb added the enhancement New feature or request label Aug 2, 2023
@sballe73
Copy link

sballe73 commented Sep 4, 2023

looks like when we right clic it turns into zoom and rotate mode. But how do you quit this mode ?

@androidseb
Copy link
Owner Author

I'm not aware of this, are you talking about the PC web app?

What PC + OS + browser are you using to achieve this? Right click for me just brings the browser menu, not related to the app...

@sballe73
Copy link

sballe73 commented Sep 5, 2023

it does bring the context menu, but it also triggers this unescapable zoom and rotate mode :)
Using Firefox on Linux
once in the mode I have to refresh (and most of the time resync to the cloud) but the angle of rotation is kept

@androidseb
Copy link
Owner Author

I was not aware that this was happening. I just tried it on Firefox and I was able to reproduce this.

I believe this is a bug, here is my interpretation of what is happening... When you right-click on the map with Firefox:

  • The "touch down" event is registered on the map at that precise screen location you right-clicked
  • The context menu appears
  • You let go of the right click button, but the "touch up" even is never transmitted back to the map
  • If you use the left click to drag on the map, it's as if you had a second "touch down" event, the first one being where you originally right-clicked
  • It remains stuck like this until you reload the page

So this behavior is a bug with the Firefox browser...

This improvement will make it possible to rotate the map intentionally.

@androidseb
Copy link
Owner Author

Flutter Map V6 will support this:

You can test this using their demo page (based on the master branch), holding "Ctrl" on your keyboard allows you to rotate the map when dragging:
https://demo.fleaflet.dev/

Once the V6 is released, I'll upgrade the library version used by Map Marker and this improvement will be included automatically, thank you flutter_map team!!!.

@androidseb androidseb added this to the Map Marker 3.7.0 milestone Oct 9, 2023
@androidseb
Copy link
Owner Author

Done in 3.7.0-beta-637.
You can rotate the map by holding the Ctrl key and dragging the mouse.

@sballe73
Copy link

sballe73 commented Mar 30, 2024 via email

@sballe73
Copy link

sballe73 commented Apr 3, 2024

it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Generally available
Development

No branches or pull requests

2 participants