Releases: sdl60660/river-runner
Added (disabled) advanced features
Added some optional advanced features, such as a flowlevel gauge that have been disabled by default, to eventually work into the project in an options box UI item. Many of theses significantly slow down the app, so will need to be implemented carefully. Some other small changes that smooth elevation sampling and the transition between flyTo and the river run, as well as broadly re-factoring a lot of the code that was in Map.svelte
Added start timer
Added a start timer for the run that will allow users to pause and sit in overview mode if they'd like, or automatically start the run after five seconds. A lot of people had requested that it not go straight into the run, but I needed a way to balance this with people who may not be familiar with the site/know to hit a play button, so this was the compromise I landed on.
Using new tile elevation queries/fixed Chesapeake Bay bug/inland feature false positives
Incorpoorated new Mapbox v2.3 map elevation queries to save a lot of API calls/complexity on elevation sampling. This new function also accounts for terrain elevation, which made the true camera elevation calculation much more straightforward. When jumping from a finished run with a zoomed point to a new run, the tile elevation query often fails, so it will fall back on the old method of elevation API calls/more complex camera elevation calculation. Also fixed a bug in determining Chesapeake Bay as a stopping feature and greatly reduced the threshold for a found inland stopping feature from 100km to 10km after hearing multiple complaints of false positives (may need to keep tinkering with this/adjust it later).
Added explicit zoom buttons to desktop version
Added explicit zoom buttons to desktop version and fixed some small styling/usability issues
Fixed SF Bay stopping feature
Ocean vector data wasn't capturing San Francisco Bay and it was causing weird stopping feature issues in that drainage area. Added a separate SF Bay polygon and some conditional logic to capture it if the ending point is around there.
Fixed a styling and camera elevation bug
Replaced the zeroed out final elevation coordinate with the final known elevation coordinate. On short paths that don't end at sea-level/the ocean, this was causing really weird camera behavior and there's not much downside to just using the second to last point. It may think the camera should be at like 50ft above sea level when it should be at 0, but that shouldn't visibly affect things much.
Fixed Chesapeake Bay bounding box bug
Forgot to add a west latitude bound on bounding box for Chesapeake bay stopping feature, so it was incorrectly identifying some west coast ocean area as the Chesapeake Bay
Mobile map sizing/path calculation error fixes
Fixed a few bugs with path calculations due to a property name I had forgotten to switch from a name to ID, and occasional unexpected errors in querying elevations. Also fixed the dimensions of the map on mobile so that the footer isn't covering up the OSM attribution and the very bottom of the map isn't cut off.
Flight Overview/Path Sharing
Added an "overview" at the end of a flight path (or on abort) that allows a user to replay, share a path link, or exit, and also to explore the path with navigation controls while it's still displayed. On desktop, a user can also highlight over one of the navigation box features and the section of the flowpath will highlight yellow. Also added functionality to receive a URL with lat/lng URL parameters and jump into the navigation so that it can handled the shared paths.
Full Playback Controls
Added rewind/fast-forward controls and added progress points/full playback controls for mobile (with skips). Also made some layout changes for tablets and fixed some persistent feature group bugs.