mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-15 07:07:07 +00:00
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>