Commit Graph
2 Commits
Author SHA1 Message Date
b80fa7d942 fix a click on the temporary anchor (#397)
Hovering a line in the routing tool shows a temporary anchor, which is
drawn in the anchors' layer with the index one past the last anchor.
Clicking it reached onClick, which looked that index up in the anchors,
got undefined and threw reading its properties. The click now adds the
anchor, as a click on the line does.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: vcoppe <vianney.coppe@gmail.com>
2026-11-08 14:26:58 +01:00
Nathan Cahillandvcoppe 2608870505 fix a latitude typed past ±90 in the waypoint tool (#398)
The pin followed the latitude and longitude fields on every keystroke,
and min/max on a number field don't stop typing, so a value on the way
to a coordinate (389) reached Marker.setLngLat and MapLibre threw
"Invalid LngLat latitude value". An empty field moved the pin to the
equator, saving with one threw on null.toFixed, and an out-of-range
value saved as typed.

The pin now stays where it was and Save is disabled until both fields
hold a coordinate in range, and the field that doesn't is marked
invalid.

Co-authored-by: vcoppe <vianney.coppe@gmail.com>
2026-11-08 14:17:45 +01:00