Skip to content

Commit 0ad8d5c

Browse files
committed
Fix path dp scale
Signed-off-by: Kyle Corry <[email protected]>
1 parent a56e576 commit 0ad8d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/kylecorry/trail_sense/shared/map_layers/ui/layers/geojson/features/GeoJsonLineStringRenderer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class GeoJsonLineStringRenderer : FeatureRenderer() {
210210
}
211211
val scale = map.layerScale
212212
// Paths were originally 6px, so convert that to the default dp size
213-
val dpScale = drawer.dp(DEFAULT_LINE_STRING_STROKE_WEIGHT_DP) / 6f
213+
val dpScale = 6f / drawer.dp(DEFAULT_LINE_STRING_STROKE_WEIGHT_DP)
214214
synchronized(lock) {
215215
for (path in reducedPaths) {
216216
if (path.line.isEmpty()) {

0 commit comments

Comments
 (0)