The "Go" button calls goToLatLon/setLatLon, which sets the defaults. So I added
goToState: (lat: number, lon: number, pitch: number, yaw: number, distance: number) => void;
and setState(lat, lon, pitch, yaw, distance)
In SavedPlaceParams and addNewPlace I added pitch, yaw and distance.
I did NOT add them to addNewPlace, that would mean no backward compatibility.
I even removed lat, lon because it is redundant in .link.
In useLayoutEffect, all values are taken from .link now.
The "Go" button calls goToLatLon/setLatLon, which sets the defaults. So I added goToState: (lat: number, lon: number, pitch: number, yaw: number, distance: number) => void; and setState(lat, lon, pitch, yaw, distance)
In SavedPlaceParams and addNewPlace I added pitch, yaw and distance. I did NOT add them to addNewPlace, that would mean no backward compatibility. I even removed lat, lon because it is redundant in .link. In useLayoutEffect, all values are taken from .link now.
#121