mapbox / mapbox/mapbox-maps-android
Polygon breaks when zooming in
Nessuno ha ancora preso questa issue.
- Lingua principale
- Kotlin
- Stelle
- 578
- Fork
- 161
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## Environment
- Android OS version: Android 11
- Devices affected: Samsung S10+
- Maps SDK Version: 9.7.0, "com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0", **Reproduced in v10 as well.**
Reproduced on Emulator Pixel 4 API 29 as well.
## Observed behavior and steps to reproduce
Add a hexagon with the following points, using the **Plugin Annotation**:
`[[35.52482636074315,24.014679947948405],[35.51114716956354,24.01391178034676],[35.50374631403231,24.02820018964633],[35.51002341064811,24.043258382501087],[35.52370239640629,24.044030629840638],[35.53110449138368,24.02974060478422]]`
This point is on Greece (but it doesn't matter you can add any hexagon you like). When zooming up to a certain point (<13 based on `mapboxMap.cameraPosition.zoom`) everything is OK. **As soon as you zoom >=13 the polygon breaks.** If you zoom back to <13 it is OK etc etc. I have attached these two screenshots to understand the difference:
**Correct Polygon:**

**Broken Polygon:**

## Expected behavior
The polygon should keep its format. The bounding points haven't changed at all.
## Notes / preliminary analysis
Same thing happens with bigger polygons as well, after a certain zoom level they break.
## Additional links and references
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema con i punti dell’esagono forniti usando Plugin Annotation e varia mapboxMap.cameraPosition.zoom intorno a 13. Traccia il percorso di rendering del poligono per il plugin di annotazione e confronta il comportamento al di sotto di 13 e a 13; il lavoro è completato quando il poligono mantiene la stessa forma durante lo zoom.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, kotlin
- Ambito
- computer-graphics, mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100