v0.13.5-pl.4
Patch follow-up to v0.13.5 — two GPX Map fixes.
Fixes
-
#118 — GPX Map: editor toggle to suppress the track cursor. New
showTrackCursorblock attribute (defaulttrue) and matching Inspector toggle under Interactions. When disabled, the Map ships without the cursor marker, without scrub handlers on the hit layer, andonMapCursorChangeno-ops for this Map. The Elevation block's own pointer / hover behaviour is unaffected — only the Map-side mirror of the shared fraction is suppressed. Useful for layouts that use the Map without a paired Elevation block. -
#138 — GPX Map editor preview: waypoint markers honour the saved colour. Previously the editor preview's waypoint markers rendered in the default red even when the editor had picked a custom colour, while the frontend rendered them correctly. Root cause: the post-mount colour-sync effect called
setStyle({ color })on the wholeL.GeoJSONlayer, which cross-talked into Point feature strokes; there was no equivalent sync forwaypointColor. The fix routes both colours through a feature-awareresolveLayerStylefunction passed toL.GeoJSON.setStyle, with the effect depending on bothtrackColorandwaypointColor.
Tests
- Pest:
Render_Map::render()emitsshowTrackCursor: trueby default and respects an explicitfalse. - Jest:
maybeCreateCursorMarkerskipsL.circleMarkerwhenshowTrackCursor === false. - Jest: pure
resolveLayerStylehelper covers Point, LineString, and default-fallback paths. - Jest: editor preview restyles waypoint markers when
waypointColorchanges and leaves waypoint colour intact when onlytrackColorchanges (no cross-talk).