This is a demo project to compare the performance of Mapibre GL JS
and Leaflet JS
when rendering large GeoJSON features on the map in draw mode.
Draw functionality is powered by TerraDraw.
- Draw Mode: Use TerraDraw to add or select, point, line and polygons features on the map.
- Random GeoJSON generator - Generate random GeoJSON features.
- GeoJSON Rendering: Test the rendering capabilities of different mapping libraries with large datasets.
- Select the mapping library.
- Generate random geeometries.
- Draw or select features on the map.
- Pan and zoom to observe how each mapping library handles the rendering of large GeoJSON datasets. Take note of any performance issues or crashes.
Clone:
git clone https://github.com/jeafreezy/webmap-compare.git
cd webmap-compare
Install dependencies:
pnpm install
Start development server:
pnpm dev