React map app skeleton by Geoapify
A minimal Vite + React 19 project to start a map application with Geoapify map tiles. Follow the React map template to add a map with MapLibre GL, Leaflet, react-leaflet or OpenLayers.
- Clone or download this repository.
- Install Node.js 20.19+ or 22.12+.
- Copy
.env.exampleto.env.localand set your Geoapify API key (get one for free at Geoapify MyProjects)..env.localis ignored by git. - Run
npm install. - Run
npm run devand open http://localhost:5173.
The page shows "The map will be displayed here". Replace src/components/my-map.jsx with the map code from the samples.
Geoapify map styles follow the MapLibre/Mapbox style specification. See the Map Tiles documentation for style URLs and raster tile URLs.
Tested 2026-10-26 with Node 24, Vite 8, React 19.