Skip to content

Commit

Permalink
Commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMathieu committed Feb 21, 2024
1 parent 3bbacad commit d87d687
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions data/example/DATASET.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ The original shapefile was converted to geojson using the following command:
```bash
ogr2ogr -f GeoJSON ski_areas.geojson ski_areas.shp
```

And to PMTiles with the following command:

```bash
tippecanoe -zg --output=docs/tiles/ski_areas_all.pmtiles --projection=EPSG:4326 data/example/ski_areas_all.geojson
```
20 changes: 10 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,14 @@ <h1 class="">Interactive Web Map</h1>
<div class="col-md-10">
<h2>About</h2>
<p>This template is designed to help Python programmers quickly deploy interactive web maps. It
leverages
Bootstrap for styling and MapLibre for rendering a satellite imagery basemap. You can host this as a
static
site on platforms like GitHub Pages.</p>
leverages Bootstrap for styling and MapLibre for rendering the map. An example data source is loaded
with Protomaps' PMTiles spec. You can host this as a
static site on platforms like GitHub Pages.</p>
</div>
<div class="col-md-10">
<h2>Contact</h2>
<p>For more information or to contribute to this project, please contact us through our GitHub
repository.</p>
<p>For more information or to contribute to this project, see our <a
href="https://github.com/PhilipMathieu/interactive-web-map/">GitHub</a>.</p>
</div>
</div>
</div>
Expand All @@ -78,8 +77,8 @@ <h2>License</h2>
</div>
<div class="col-md-6">
<h2>Acknowledgements</h2>
<p>Satellite imagery by MapTiler Cloud. Ski areas layer obtained from NOAA NWS National Operational
Hydrologic Remote Sensing Center</p>
<p>Built on Bootstrap and MapLibre GL JS. Satellite imagery by MapTiler Cloud. Ski areas layer obtained from
NOAA NWS National Operational Hydrologic Remote Sensing Center and loaded with Protomaps' PMTiles.</p>
</div>
</div>

Expand All @@ -99,7 +98,8 @@ <h2>Acknowledgements</h2>
// Initialize the map
const map = new maplibregl.Map({
container: 'map', // container ID
style: 'https://api.maptiler.com/maps/satellite/style.json?key=hhRnxfv423ZJi2JiGt95', // style URL, replace with your own style if necessary
// style URL, replace with your own style if desired
style: 'https://api.maptiler.com/maps/satellite/style.json?key=hhRnxfv423ZJi2JiGt95',
center: [-95, 38], // starting position [lng, lat]
zoom: 4 // starting zoom
});
Expand All @@ -112,7 +112,7 @@ <h2>Acknowledgements</h2>
map.on('load', function () {
map.addSource('skiAreas', {
'type': 'vector',
'url': 'pmtiles://tiles/ski_areas_all.pmtiles'
'url': 'pmtiles://tiles/ski_areas_all.pmtiles' // path to tiles
});
map.addLayer({
'id': 'skiAreasCircles',
Expand Down

0 comments on commit d87d687

Please sign in to comment.