Skip to content

Commit 6097b6c

Browse files
committed
Moved starter template down to local.html
1 parent 748ed9a commit 6097b6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Monaco Map - Protomaps Starter</title>
6+
<title>Local Styles and Tiles - Protomaps Starter</title>
77

88
<!-- MapLibre GL JS -->
99
<script src="https://unpkg.com/maplibre-gl@5.15.0/dist/maplibre-gl.js"></script>
@@ -34,13 +34,13 @@
3434
maplibregl.addProtocol("pmtiles", protocol.tile);
3535

3636
// Load and modify the style to use local PMTiles
37-
fetch('styles/style.json')
37+
fetch('../styles/style.json')
3838
.then(response => response.json())
3939
.then(style => {
4040
// Replace the source URL with the local PMTiles file
4141
style.sources.protomaps = {
4242
type: "vector",
43-
url: "pmtiles://tiles/monaco.pmtiles",
43+
url: "pmtiles://../tiles/monaco.pmtiles",
4444
attribution: style.sources.protomaps.attribution
4545
};
4646

0 commit comments

Comments
 (0)