summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-05-21 08:55:01 +0000
committerClaude <noreply@anthropic.com>2026-05-21 08:55:01 +0000
commit4d476844170b2892599274b28fe1235fa6286655 (patch)
tree6da7a250152d709ce6520a104b3f75c445537b1f
parent0da5ea2d140fc5bfa7e46a954be296d70fea49c4 (diff)
Revert detail sheet drawTrack to original single-Feature static color
The speed-color expression approaches all failed silently. Reverting to the exact pre-speed-color form (single Feature LineString, static #2B8FC4) to re-establish a visible track line while diagnosing why the FeatureCollection/expression approach doesn't render. https://claude.ai/code/session_01YUbuZNDAoLea4cf9UGQ9qn
-rw-r--r--android-app/app/src/main/kotlin/org/terst/nav/track/TrackDetailSheet.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/android-app/app/src/main/kotlin/org/terst/nav/track/TrackDetailSheet.kt b/android-app/app/src/main/kotlin/org/terst/nav/track/TrackDetailSheet.kt
index 6f3ed82..cedf4e1 100644
--- a/android-app/app/src/main/kotlin/org/terst/nav/track/TrackDetailSheet.kt
+++ b/android-app/app/src/main/kotlin/org/terst/nav/track/TrackDetailSheet.kt
@@ -102,14 +102,14 @@ class TrackDetailSheet : Fragment() {
private fun drawTrack(style: Style, points: List<TrackPoint>) {
if (points.size < 2) return
val source = GeoJsonSource("track-detail-source",
- FeatureCollection.fromFeatures(speedSegments(points)))
+ Feature.fromGeometry(LineString.fromLngLats(points.map { Point.fromLngLat(it.lon, it.lat) })))
style.addSource(source)
style.addLayer(LineLayer("track-detail-layer", "track-detail-source").apply {
setProperties(
+ PropertyFactory.lineColor("#2B8FC4"),
PropertyFactory.lineWidth(4f),
PropertyFactory.lineCap("round"),
- PropertyFactory.lineJoin("round"),
- PropertyFactory.lineColor(speedColorExpression())
+ PropertyFactory.lineJoin("round")
)
})
}