File tree Expand file tree Collapse file tree 5 files changed +12
-11
lines changed
Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 22 < head >
33 < title > PMTiles MapLibre Example</ title >
44 < meta charset ="utf-8 "/>
5- < link rel ="stylesheet " href ="https://unpkg.com/maplibre-gl@4.7 .0/dist/maplibre-gl.css " crossorigin ="anonymous ">
6- < script src ="https://unpkg.com/maplibre-gl@4.7 .0/dist/maplibre-gl.js " crossorigin ="anonymous "> </ script >
5+ < link rel ="stylesheet " href ="https://unpkg.com/maplibre-gl@5.13 .0/dist/maplibre-gl.css " crossorigin ="anonymous ">
6+ < script src ="https://unpkg.com/maplibre-gl@5.13 .0/dist/maplibre-gl.js " crossorigin ="anonymous "> </ script >
77 < script src ="https://unpkg.com/pmtiles@4.3.0/dist/pmtiles.js "> </ script >
88 < style >
99 body {
Original file line number Diff line number Diff line change 22 < head >
33 < title > PMTiles MapLibre Example</ title >
44 < meta charset ="utf-8 "/>
5- < link rel ="stylesheet " href ="https://unpkg.com/maplibre-gl@4.7 .0/dist/maplibre-gl.css " crossorigin ="anonymous ">
6- < script src ="https://unpkg.com/maplibre-gl@4.7 .0/dist/maplibre-gl.js " crossorigin ="anonymous "> </ script >
5+ < link rel ="stylesheet " href ="https://unpkg.com/maplibre-gl@5.13 .0/dist/maplibre-gl.css " crossorigin ="anonymous ">
6+ < script src ="https://unpkg.com/maplibre-gl@5.13 .0/dist/maplibre-gl.js " crossorigin ="anonymous "> </ script >
77 < script src ="https://unpkg.com/pmtiles@4.3.0/dist/pmtiles.js "> </ script >
88 < style >
99 body {
Original file line number Diff line number Diff line change 22 < head >
33 < title > PMTiles MapLibre Raster DEM Example</ title >
44 < meta charset ="utf-8 "/>
5- < link rel ="stylesheet " href ="https://unpkg.com/maplibre-gl@4.7 .0/dist/maplibre-gl.css " crossorigin ="anonymous ">
6- < script src ="https://unpkg.com/maplibre-gl@4.7 .0/dist/maplibre-gl.js " crossorigin ="anonymous "> </ script >
5+ < link rel ="stylesheet " href ="https://unpkg.com/maplibre-gl@5.13 .0/dist/maplibre-gl.css " crossorigin ="anonymous ">
6+ < script src ="https://unpkg.com/maplibre-gl@5.13 .0/dist/maplibre-gl.js " crossorigin ="anonymous "> </ script >
77 < script src ="https://unpkg.com/pmtiles@4.3.0/dist/pmtiles.js "> </ script >
88 < style >
99 body {
4040 sources : {
4141 example_source : {
4242 type : "raster-dem" ,
43- url : "pmtiles://https://r2-public.protomaps .com/protomaps-sample-datasets/terrarium_z9 .pmtiles" ,
43+ url : "pmtiles://https://download.mapterhorn .com/planet .pmtiles" ,
4444 encoding : "terrarium" ,
45+ attribution : "<a href='https://mapterhorn.com/attribution'>© Mapterhorn</a>"
4546 } ,
4647 } ,
4748 layers : [
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ import { useGeographic } from 'ol/proj';
2323
2424const rasterLayer = new WebGLTile ({
2525 source: new PMTilesRasterSource ({
26- url: " https://r2-public.protomaps .com/protomaps-sample-datasets/terrarium_z9 .pmtiles" ,
27- attributions: [" https://github .com/tilezen/joerd/blob/master/docs/ attribution.md " ],
26+ url: " https://download.mapterhorn .com/planet .pmtiles" ,
27+ attributions: [" https://mapterhorn .com/attribution/ " ],
2828 tileSize: [512 ,512 ]
2929 })
3030});
Original file line number Diff line number Diff line change 1717 < script type ="text/javascript ">
1818 const rasterLayer = new ol . layer . WebGLTile ( {
1919 source : new olpmtiles . PMTilesRasterSource ( {
20- url :"https://r2-public.protomaps .com/protomaps-sample-datasets/terrarium_z9 .pmtiles" ,
21- attributions :[ "https://github .com/tilezen/joerd/blob/master/docs/ attribution.md " ] ,
20+ url :"https://download.mapterhorn .com/planet .pmtiles" ,
21+ attributions :[ "https://mapterhorn .com/attribution/ " ] ,
2222 tileSize : [ 512 , 512 ]
2323 } )
2424 } ) ;
You can’t perform that action at this time.
0 commit comments