maps.openlab.dev
This website hosts protomap tiles (pmtiles) for use accress Open Lab projects. There is a brief description of the format and a guide for using them.
about
This site contains information about using Open Lab's PMTiles in your app's maps. PMTiles is a binary format that contains vector-based tiles for client-side maps, generated from OpenStreetMap. That means you can style your maps however you like and do not have to rely on a third party like Google Maps or MapBox.
Internally, the PMTiles format works on HTTP range requests so the client only requests the specific tiles in needs and the correct resolutions.
This website documents the tilesets that are available and when they were last updated.
install
TODO: ...
cli
The other part of this website is a CLI that is used to fetch the generated tiles from ProtoMaps.
It's run command does the following:
- Connects to the S3 bucket, where the tiles will be uploaded too
- Reads in the configuration that tells it what tilesets to create with bounding boxes
- It loads the protomaps build.json file to see what downloads are available.
- For each target:
- It uses the
pmtilesbinary to download & extract the boundary box into a new binary - It uploads that file to the S3 bucket as
{target}.pmtiles - It also uploads a JSON metadata file containing information about the download as
{target}.json - Finally, it uploads a
_metadata.jsonfile with information about all the downloads.
tiles
Copy the URLs below to link them into your app.
fonts
The fonts are manually built using font-maker
and uploaded to the S3 bucket in the /fonts/ folder.
They can be referenced like:
https://maps.openlab.dev/fonts/{fontstack}/{range}.pbf
The provided fonts are:
Inter ItalicInter MediumInter Medium ItalicInter RegularNoto Sans ItalicNoto Sans MediumNoto Sans Regular
sprites
Sprites aren't available yet.