FFFF GitHub - feminizidmap/feminizidmap · GitHub
[go: up one dir, main page]

Skip to content

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open 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.

Generating the map tiles (pmtiles)

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).

  1. 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
  2. Pick a daily planet build from build.protomaps.com (URLs look like https://build.protomaps.com/YYYYMMDD.pmtiles).

  3. 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).

  4. Replace public/germany9.pmtiles with the new file.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

Releases

Packages

Used by

Contributors

Languages

0