fleaflet / flutter_map

A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.

Home Page:https://pub.dev/packages/flutter_map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] v7-beta: polygon becomes distorted & invisible (but remains interactive) when zoomed far in

RuoLiDevelop opened this issue · comments

What is the bug?

this question is the same as issues #1864,polygon becomes distorted & invisible (but remains interactive) when zoomed far in.

How can we reproduce it?

screen-capture.webm

Do you have a potential solution?

No response

Platforms

macos chrome

Severity

Minimum: Allows normal functioning

Hi @RuoLiDevelop!

In the latest code the lines are supposed to be always correct (I tested up to zoom 32 in #1864 (comment)). There's still an issue with the areas, in high zoom levels (e.g. 25+) (cf. #1864 (comment)).

I'm very surprised you're still experiencing display issues regarding lines: are you using the latest code - the one that included #1871?

Hi @RuoLiDevelop!

In the latest code the lines are supposed to be always correct (I tested up to zoom 32 in #1864 (comment)). There's still an issue with the areas, in high zoom levels (e.g. 25+) (cf. #1864 (comment)).

I'm very surprised you're still experiencing display issues regarding lines: are you using the latest code - the one that included #1871?

thank you for your reply,
In the latest code, the problem still exists

@RuoLiDevelop Please provide a code example, not a video. I managed to go up to zoom level 32 without distortions. Your issue may be related to the zoom gesture not zooming to the right place when the zoom level is too high.

@RuoLiDevelop Please provide a code example, not a video. I managed to go up to zoom level 32 without distortions. Your issue may be related to the zoom gesture not zooming to the right place when the zoom level is too high.

I am using an example demo,It may not be related to gestures, as high zoom polygons may shake.

I tested with the demo app too and could only experience those disortions if I zoomed in very far.
Should we soft limit the max zoom internally to something like 32?

I would prefer to just ignore the issue, put it down to precision, and add a note to the documentation. But also fine with limiting the max zoom if you prefer. No real usecase should need to use zoom level 32 (except maybe non-geographical maps, like games/floor plans?).

I ask myself if double percision limitations have an effect on those zoom levels. 🤔 But I agree, zoom level above 32 (and probably way before) are out of scope.