[BUG] Polygon hitbox does not take into account map rotation #1934
Labels
bug
This issue reports broken functionality or another error
P: 2 (soon™?)
S: core
Scoped to the core flutter_map functionality
What is the bug?
When the map is in the initial position, and when we are trying to select a polygon(shape made on the map) its working fine, but when we try to rotate it , the hit box or when i try to select anything, we are not able to select the polygon.
When camera rotation is 0, hit detection works as intended, if camera rotation is != 0 hit detection is not working as intended.
PolyLinelayer layer is working as intended, PolygonLayer is the issue.
I added a listener to _hitNotifier but is is detecting the same as the onTap function on GestureDetector.
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4529], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.1)
[√] VS Code (version 1.91.1)
[√] Connected device (3 available)
[√] Network resources
! Doctor found issues in 2 categories.
How can we reproduce it?
Do you have a potential solution?
No
Platforms
Android 14
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
The text was updated successfully, but these errors were encountered: