Skip to content

Basemap PMTiles generation and cartographic styles for MapLibre GL

License

Notifications You must be signed in to change notification settings

cornfieldcreative/basemaps

 
 

Repository files navigation

Protomaps Basemaps

This repository has two core parts:

  • tiles/: A Planetiler build profile that generates planet.pmtiles from OpenStreetMap and Natural Earth in 2-3 hours on a modest computer.
  • base/: A TypeScript package that generates MapLibre GL styles, in multiple color themes, that can be used via npm or exported as JSON.

Usage

You will need Java 17+ and Maven installed, which is available in most package managers.

Generate and inspect a basemap PMTiles of any named area:

  1. Clone this repository.
git clone [email protected]:protomaps/basemaps.git
  1. change to the tiles directory, download dependencies and compile the JAR:
cd basemaps/tiles
mvn clean package
  1. Download and generate monaco.pmtiles in the current directory:
java -jar target/*-with-deps.jar --download --force --area=monaco
  1. Switch to the compare/ directory to run the map compare tool:
cd compare
npm run serve
  1. Linting to apply code formatting
mvn spotless:apply

License

BSD 3-clause. The organization of layers and features used by these map styles, as well as the "look and feel" of the resulting maps, are licensed CC0. However, maps using the Protomaps web map service or another OpenStreetMap-based service will be subject to the terms of the Open Database License.

About

Basemap PMTiles generation and cartographic styles for MapLibre GL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 63.2%
  • TypeScript 26.0%
  • HTML 8.5%
  • Makefile 2.3%