Skip to content

Commit 9d9a712

Browse files
committed
Added basemap-assets so fonts and sprites are also local
1 parent 6097b6c commit 9d9a712

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "basemaps-assets"]
2+
path = basemaps-assets
3+
url = https://github.com/protomaps/basemaps-assets.git

basemaps-assets

Submodule basemaps-assets added at 028c18f

examples/local.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
attribution: style.sources.protomaps.attribution
4545
};
4646

47+
style.glyphs = "http://localhost:8080/basemaps-assets/fonts/{fontstack}/{range}.pbf";
48+
style.sprite = "http://localhost:8080/basemaps-assets/sprites/v4/light";
49+
4750
// Initialize map with modified style
4851
const map = new maplibregl.Map({
4952
container: 'map',

0 commit comments

Comments
 (0)