Develop the main map component for the dashboard. This component must fetch live truck data from the backend API every 10-15 seconds and display the trucks as interactive markers on a map. Clicking a marker should show a pop-up with details like truck_id and speed.
Suggestions: Use Mapbox GL JS for a high-performance, customizable map. Ensure the component efficiently handles data updates without causing the entire page to re-render.
Develop the main map component for the dashboard. This component must fetch live truck data from the backend API every 10-15 seconds and display the trucks as interactive markers on a map. Clicking a marker should show a pop-up with details like truck_id and speed.
Suggestions: Use Mapbox GL JS for a high-performance, customizable map. Ensure the component efficiently handles data updates without causing the entire page to re-render.