diff options
| author | Claude <noreply@anthropic.com> | 2026-05-21 08:55:01 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-21 08:55:01 +0000 |
| commit | 4d476844170b2892599274b28fe1235fa6286655 (patch) | |
| tree | 6da7a250152d709ce6520a104b3f75c445537b1f /android-app/app/src/main | |
| parent | 0da5ea2d140fc5bfa7e46a954be296d70fea49c4 (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
Diffstat (limited to 'android-app/app/src/main')
| -rw-r--r-- | android-app/app/src/main/kotlin/org/terst/nav/track/TrackDetailSheet.kt | 6 |
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") ) }) } |
