You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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") }
The text was updated successfully, but these errors were encountered:
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. :)
Environment
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") }
The text was updated successfully, but these errors were encountered: