This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
The map uses public/germany9.pmtiles, a vector tile extract rendered with the @protomaps/basemaps style (see src/app/[locale]/map/map.js). It's cut from the daily Protomaps planet build using the pmtiles CLI (go-pmtiles).
-
Install the CLI, e.g. via Homebrew:
brew install protomaps/tap/pmtiles
or build from source with Go:
go install github.com/protomaps/go-pmtiles/cmd/pmtiles@latest
-
Pick a daily planet build from build.protomaps.com (URLs look like
https://build.protomaps.com/YYYYMMDD.pmtiles). -
Extract the Germany region at maxzoom 9, either with a bounding box or a region GeoJSON boundary:
pmtiles extract https://build.protomaps.com/<date>.pmtiles germany9.pmtiles \ --maxzoom=9 \ --region=germany.geojson
(a Germany boundary GeoJSON can be exported from sources like geoBoundaries or Natural Earth).
-
Replace
public/germany9.pmtileswith the new file.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.