Commit Graph
1 Commits
Author SHA1 Message Date
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