I'll completely rewrite the navigation-assistant.tsx file to fix the export error. The issue is that the file doesn't have a proper default export.
I've completely rewritten the navigation-assistant.tsx file to fix the export error. Here are the key changes:
The component now properly:
This should resolve the export error you were seeing in the preview.
I'll fix the error by updating the structure of the activeRoute object to ensure that activeRoute.legs is properly defined.
I've fixed the error by making two important changes:
In the NavigationAssistant component:
legs property with the correct structuregetMockDirections function to include the legs array directly at the top level of the returned route objectIn the AzureMaps component:
activeRoute.legs exists and has points before trying to access themThese changes ensure that when the AzureMaps component tries to access activeRoute.legs[0].points, the data will be available and properly structured. The error was occurring because we were spreading the route data incorrectly, causing the legs property to be nested under routes instead of at the top level.
The application should now work correctly, displaying the route on the map when navigation is started.
The bounds specified are invalid: [,,,] at AzureMaps/< (/components/azure-maps)
also I want the where to above to have like a different input looking element, something like what is done on this image. once the page loads, location should be requested for, so it's after the where to is clicked the saved points should show, also note that users can add specific points for exactly where they are. also the navigation assistant should not be able to be started unless a point has been selected and start navigation is enabled, then the waypoint is plotted, then the users can start following the guidance.