Skip to content

Commit

Permalink
Update libs + GitHub Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
indyteo committed Sep 18, 2023
1 parent 8672e4a commit 5005170
Show file tree
Hide file tree
Showing 5 changed files with 3,069 additions and 6,338 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Deploy GitHub Pages"

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Setup NodeJS & NPM"
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: "Install dependencies"
run: npm ci
- name: "Build App"
run: npm run build
- name: "Deploy React App to GitHub Pages"
uses: JamesIves/github-pages-deploy-action@4.1.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
clean: true
folder: dist
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<a href="#" id="popup-closer" class="ol-popup-closer"></a>
<div id="popup-content"></div>
</div>
<script src="main.js"></script>
<script type="module" src="main.js"></script>
</body>

</html>
</html>
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var vectorSource = new VectorSource({
format: new GeoJSON(),
url: function (extent) {
return (
'https://wxs.ign.fr/choisirgeoportail/geoportail/wfs?service=WFS&' +
'https://wxs.ign.fr/essentiels/geoportail/wfs?service=WFS&' +
'version=1.1.0&request=GetFeature&typename=BDTOPO_V3:batiment&' +
'outputFormat=application/json&srsname=EPSG:3857&' +
'bbox=' +
Expand All @@ -88,7 +88,7 @@ var wfs = new VectorLayer({

// Couche WMTS PLAN IGN v2
var rasterSource = new WMTS({
url: 'https://wxs.ign.fr/choisirgeoportail/geoportail/wmts',
url: 'https://wxs.ign.fr/essentiels/geoportail/wmts',
//layer: 'GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2',
//format: 'image/png'
layer: 'ORTHOIMAGERY.ORTHOPHOTOS',
Expand Down Expand Up @@ -145,4 +145,4 @@ map.on('singleclick', function (evt) {
content.innerHTML = liste;
overlay.setPosition(coordinate);
}
});
});
Loading

0 comments on commit 5005170

Please sign in to comment.