Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Rotation breaks the location marker #75

Open
Michael-Eliosov opened this issue Jun 18, 2021 · 6 comments
Open

Rotation breaks the location marker #75

Michael-Eliosov opened this issue Jun 18, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@Michael-Eliosov
Copy link

Michael-Eliosov commented Jun 18, 2021

When you zoom the map by pinching, the location market moves all over the place. This can be seen in the example project here.

@Xennis
Copy link
Owner

Xennis commented Jun 19, 2021

Dear @Michael-Eliosov not the zooming but the rotation is the problem here. That was recently added to flutter_map. As a workaround you can use disable it:

            options: MapOptions(
              plugins: <MapPlugin>[
                LocationPlugin(),
              ],
              interactiveFlags: InteractiveFlag.all & ~InteractiveFlag.rotate,
            ),

I'll check how we can make it work with rotation as well.

@Xennis Xennis added the bug Something isn't working label Jul 6, 2021
@Xennis Xennis reopened this Jul 23, 2021
@Xennis Xennis changed the title Zooming breaks the location marker Rotation breaks the location marker Jul 23, 2021
@Xennis
Copy link
Owner

Xennis commented Jul 23, 2021

Let's keep it open because the issue still exists and the hint above is just a workaround.

@Michael-Eliosov
Copy link
Author

Okay, no problem

@hpulst
Copy link

hpulst commented Aug 22, 2021

It is also breaking when simply zooming. Any idea how to solve this?

@Michael-Eliosov
Copy link
Author

Have you disabled rotation like suggested?

@Xennis
Copy link
Owner

Xennis commented Aug 22, 2021

Dear @hpulst most likely you do zooming and rotation. The zooming works. Please see #75 (comment) to disable the rotation. If you still think zooming is broken please open a new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants