Skip to content

v0.13.5-pl.4

Choose a tag to compare

@TBarregren TBarregren released this 13 May 14:58
· 51 commits to main since this release

Patch follow-up to v0.13.5 — two GPX Map fixes.

Fixes

  • #118 — GPX Map: editor toggle to suppress the track cursor. New showTrackCursor block attribute (default true) and matching Inspector toggle under Interactions. When disabled, the Map ships without the cursor marker, without scrub handlers on the hit layer, and onMapCursorChange no-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 whole L.GeoJSON layer, which cross-talked into Point feature strokes; there was no equivalent sync for waypointColor. The fix routes both colours through a feature-aware resolveLayerStyle function passed to L.GeoJSON.setStyle, with the effect depending on both trackColor and waypointColor.

Tests

  • Pest: Render_Map::render() emits showTrackCursor: true by default and respects an explicit false.
  • Jest: maybeCreateCursorMarker skips L.circleMarker when showTrackCursor === false.
  • Jest: pure resolveLayerStyle helper covers Point, LineString, and default-fallback paths.
  • Jest: editor preview restyles waypoint markers when waypointColor changes and leaves waypoint colour intact when only trackColor changes (no cross-talk).