From 3b3f6d4728d5d824058fc234ad986c8b66c47d85 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 2 Oct 2024 11:28:49 +0200 Subject: [PATCH] Update pmtiles.md; add glyphs download location --- gis/pmtiles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gis/pmtiles.md b/gis/pmtiles.md index 2941acc915..57b60ee51a 100644 --- a/gis/pmtiles.md +++ b/gis/pmtiles.md @@ -211,7 +211,7 @@ const myMap = new maplibregl.Map({ }, }); ``` -I haven't yet figured out how to host my own copy of the `glpyhs` (effectively the fonts used to render labels on the map), so I'm using the Protomaps CDN for the moment. +You can also self host the glyphs, by downloading them from here: [https://github.com/protomaps/basemaps-assets](https://github.com/protomaps/basemaps-assets) I needed to specify a full URL to my `hmb.pmtiles` file. In my development environment that's `http://localhost:5174/hmb.pmtiles` - but in production it's `https://simonw.github.io/hmb-map/hmb.pmtiles` - so I had to dynamically assemble that URL using the `location.protocol` and `location.host` and `location.pathname` properties.