This project is part of my experiment to build a vector tile static pipeline for react
.
The tiles were generated with tippecanoe, starting from shp
/mbtiles
/geojson
data. As example, to convert a geojson
I run:
tippecanoe -Z 7 -z 12 -y name -y region -y province -y departement --output-to-directory regions regions.geojson
Unfortunately, I can't publish the used tiles.
The tiles must be located under public/tiles
folder. Before to start the application you must launch the internal tile-server
The project was bootstrapped with Create React App and make use of react-leaflet and react-leaflet-vectorgrid.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Launch the internal tile-server
.
Your tile-server
should be available at http://localhost:8000.