GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - protomaps/basemaps: Basemap PMTiles generation and cartographic styles for OpenStreetMap data and more

BranchesTags
Open more actions menu

Latest commit

 

History

642 Commits
642 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
app
app
 
 
examples
examples
 
 
render-tests
render-tests
 
 
sprites
sprites
 
 
styles
styles
 
 
tiles
tiles
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
LICENSE_DATA.md
LICENSE_DATA.md
 
 
README.md
README.md
 
 
SEMANTIC-VERSIONING.md
SEMANTIC-VERSIONING.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Protomaps Basemaps

Build a cartographic "basemap" PMTiles from OpenStreetMap + other datasources, plus MapLibre styles for displaying them in a browser.

To get started, check out some basic examples:

  • display markers on a map
  • change the map theme and language
  • sandwich data between map layers

This repository is organized into parts:

  • app: A single-page app, https://maps.protomaps.com for viewing and downloading basemap builds.
  • tiles/: A Planetiler build profile that generates planet.pmtiles from OpenStreetMap and Natural Earth in 2-3 hours on a modest computer.
  • styles/: A TypeScript package that generates MapLibre GL styles, in multiple color themes, that can be used via npm or exported as JSON.

Assets such as fonts and sprites are hosted and downloadable at the basemaps-assets repository.

Development

You will need Java 21+ 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 app/ directory to run the map frontend:
cd app
nvm use
npm ci
npm run dev

The locally generated pmtiles can be fetched from http://localhost:5173/monaco.pmtiles

  1. Linting to apply code formatting
mvn spotless:apply

Licensing and Attribution Guidelines

Summary:

  • All code is BSD-3
  • Map design is CC0
  • Tilesets are ODbL, attribute OSM
  • We like shoutouts!
  • Name your fork, commercial product or service something different

We kindly request that you attribute the Protomaps project if you use the basemap styles unmodified or with additions, but you are not required to do so. The visual design copyright of the maps is released under a Creative Commons Zero (CC0) license to eliminate ambiguity around derivative or combined works of map styling code, and to publish software, such as NPM packages, under the standard BSD-3 license.

The tilesets that power the Protomaps basemap are Produced Works of the OpenStreetMap dataset under the Open Database License. Web maps and native apps that use this Produced Work must visibly attribute © OpenStreetMap - for example, in the corner of the map display. If your map only uses the Map Styles with non-OpenStreetMap tilesets, this attribution is not required.

Example web map corner attribution:

<a href="https://github.com/protomaps/basemaps">Protomaps</a> © <a href="https://openstreetmap.org">OpenStreetMap</a>

Tilesets also include data from Natural Earth and other sources, which does not require corner attribution. Other data sources your map uses may require additional attribution: See LICENSE_DATA.md.

Depending on map style, MIT-licensed icons may also be included from the Tangram Icons repository.

The software in this repository is made available under a BSD 3-Clause License, and includes license notices related to Protomaps LLC, Mapzen, and the Linux Foundation. You must retain these license notices in software source code derived from this repository.

If you distribute a modified “fork” of these basemap styles or tilesets, or provide a tiles API based on them, you must name your product or service something different from Protomaps. Free and unmodified redistributions of tiles and styles are permitted to use the name. No restrictions apply to the underlying technology .pmtiles which is an open specification in the public domain.

These guidelines are subject to change with the addition of other open datasets. Any questions can be addressed to [email protected].

About

Basemap PMTiles generation and cartographic styles for OpenStreetMap data and more

maps.protomaps.com/

Topics

cartographymaplibremapsopenlayersopenstreetmappmtiles

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

771 stars

Watchers

15 watching

Forks

109 forks
Report repository

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.