File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 >
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
You can’t perform that action at this time.
0 commit comments