Skip to content

fix: auto-load route from URL parameters#409

Open
Rohiyadaop wants to merge 1 commit intovalhalla:masterfrom
Rohiyadaop:fix-url-route-autoload
Open

fix: auto-load route from URL parameters#409
Rohiyadaop wants to merge 1 commit intovalhalla:masterfrom
Rohiyadaop:fix-url-route-autoload

Conversation

@Rohiyadaop
Copy link
Copy Markdown

Fix: Auto-load route from URL parameters

Fixes Issue

Closes #394

Changes proposed

  • Parse wps URL parameters on initial page load

  • Hydrate waypoints using reverse geocoding

  • Automatically render route when:

    • Map is ready
    • At least 2 valid waypoints exist
  • Moved URL parsing logic from DirectionsControl to App

  • Prevent duplicate execution using useRef

  • Added unit tests for:

    • URL waypoint hydration
    • Auto route rendering

Note to reviewers

This fix ensures that when a saved route URL is opened, the route is automatically displayed without requiring manual interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paste of route URL doesn't show route until "route" icon is selected

2 participants