Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineLayer looks broken when zoom-in and out (specific zoom levels) #1924

Closed
vem-popprika opened this issue Dec 26, 2022 · 2 comments
Closed
Labels
bug 🪲 Something isn't working

Comments

@vem-popprika
Copy link

vem-popprika commented Dec 26, 2022

Environment

  • Android OS version: 12
  • Devices affected: LGE LM-Q520N, Pixel 6
  • Maps SDK Version: 10.9.0

Observed behavior and steps to reproduce

I set a LineLayer on MapView with hardcoded GeoJsonSource from sample code (which is fine).
problem is when it comes to pinch-to-zoom(in and out) in specific zoom levels, the shape of line looks broken.
and I reckon that pattern changing is irregular.
is there any way to make the line be smooth? (that looks rough)

please check it out
device-2022-12-26-160057_Trim.mp4

Expected behavior

to make drawn line smooth when zoom in and out.

Notes / preliminary analysis

and my LineLayer configuration is here.
+lineLayer(LINE_LAYER_ID, GEO_SOURCE_ID) { lineCap(LineCap.ROUND) lineJoin(LineJoin.ROUND) lineOpacity(0.5) lineWidth(60.0) lineColor("#FFFFFF") }

@vem-popprika vem-popprika added the bug 🪲 Something isn't working label Dec 26, 2022
@ank27
Copy link
Contributor

ank27 commented Feb 9, 2023

hi @vem-popprika. Currently it's an expected behaviour, these artifacts comes from the line join and line cap configurations, and are prone to rendering errors especailly when the width is large. We have plans to improve them in future, but for now this seems correct behaviour.

Maybe you can try reducing the lineWidth. Let me know if you have more questions. :)

pengdev added a commit that referenced this issue Aug 11, 2023
@kiryldz
Copy link
Contributor

kiryldz commented Oct 30, 2024

Closing as stale. Additionally looks like a duplicate of #566.

@kiryldz kiryldz closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants