kernelshreyak / world-travel-simulator

Real World Travel Simulator. Drive Vehicles on 2D World Map
https://world-travel-simulator.vercel.app/
0 stars 0 forks source link

Add 3D map layer for Leaflet viewer as a new navigation option #3

Open kernelshreyak opened 2 years ago

kernelshreyak commented 2 years ago

Add a new layer for leaflet from OSM Buildings This should be toggle-able. https://osmbuildings.org/documentation/leaflet/

Update navigation display logic as needed to travel along the route in the 3D map environment

kernelshreyak commented 2 years ago

Need to figure out how to automatically fetch GeoJSON data from OSM Buildings for anywhere in the world.

kernelshreyak commented 2 years ago

Also check if it works fine with React-leaflet: https://react-leaflet.js.org/

kernelshreyak commented 2 years ago

Added in https://github.com/kernelshreyak/world-travel-simulator/commit/72814dc31b904ea2928c8d6cfe57305f6f96845b

kernelshreyak commented 2 years ago

A Bug exists when switching back to 2D mode from 2D mode. Uncaught Error: Attempted to load an infinite number of tiles

image

kernelshreyak commented 2 years ago

When using Mapbox for both 2D and 3D, it works fine but Mapbox is not efficient when changing marker position rapidly. So it is not applied at the moment.