flutter_map_location icon indicating copy to clipboard operation
flutter_map_location copied to clipboard

Rotation breaks the location marker

Open Michael-Eliosov opened this issue 4 years ago • 6 comments

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

Michael-Eliosov avatar Jun 18 '21 20:06 Michael-Eliosov

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 avatar Jun 19 '21 08:06 Xennis

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

Xennis avatar Jul 23 '21 11:07 Xennis

Okay, no problem

Michael-Eliosov avatar Jul 23 '21 12:07 Michael-Eliosov

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

hpulst avatar Aug 22 '21 17:08 hpulst

Have you disabled rotation like suggested?

Michael-Eliosov avatar Aug 22 '21 17:08 Michael-Eliosov

Dear @hpulst most likely you do zooming and rotation. The zooming works. Please see https://github.com/Xennis/flutter_map_location/issues/75#issuecomment-864374904 to disable the rotation. If you still think zooming is broken please open a new issue.

Xennis avatar Aug 22 '21 18:08 Xennis