Skip to content

Commit

Permalink
fix(layers): css and legend files & feat(routedrax): use GPF routing …
Browse files Browse the repository at this point in the history
…service
  • Loading branch information
azarz committed Dec 13, 2023
1 parent b7cb6a5 commit 7887c18
Show file tree
Hide file tree
Showing 35 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/css/layer-catalogue.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
}

.subCatMenu .layer .layerImg img {
width: 75px;
height: 50px;
width: 100%;
aspect-ratio: 3 / 2;
object-fit: cover;
border-radius: 2px;
}

.layerImg {
width: 75px;
width: 100%;
position: relative;
margin: auto;
}
Expand Down
Binary file added src/html/img/legends/Aire-Parcellaire.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/ELEVATION.LEVEL0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/FORETS.PUBLIQUES.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/HYDROGRAPHY.HYDROGRAPHY.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/LANDUSE.AGRICULTURE2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/ORTHOIMAGERY.ORTHOPHOTOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/POI.MONUMENTS_BDD_WLD_WM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/POI.MUSEUM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/PROTECTEDAREAS.PN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/PROTECTEDAREAS.PNR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/PROTECTEDAREAS.RN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/PROTECTEDAREAS.RNC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/PROTECTEDAREAS.SIC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/PROTECTEDAREAS.ZPS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/html/img/legends/TRANSPORTNETWORKS.ROADS.png
Binary file added src/html/img/legends/VILLAGESETAPE.png
2 changes: 1 addition & 1 deletion src/html/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="nav-picto"></div>
<div class="nav-text">
<p class="nav-text-header">À proximité</p>
<p class="nav-text-caption">Lancer une recherche et découvrer les points d'intérêt à proximité</p>
<p class="nav-text-caption">Lancer une recherche et découvrir les points d'intérêt à proximité</p>
</div>
<div class="nav-arrow"></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/data-layer/layers-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@
"legends": [
{
"format": "image/jpeg",
"url": "https://data.geopf.fr/annexes/ressources/legendes/LEGEND.jpg",
"url": "https://data.geopf.fr/annexes/ressources/legendes/INAO-new-legend.png",
"minScaleDenominator": "200"
}
],
Expand Down
4 changes: 2 additions & 2 deletions src/js/layer-additional.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @returns
*/
const getLegend = (name) => {
return `https://www.geoportail.gouv.fr/depot/layers/${name}/legendes/${name}-legend.png`;
return require(`../html/img/legends/${name}.png`);
};

/**
Expand All @@ -25,4 +25,4 @@ const getQuickLookUrl = (name) => {
export default {
getQuickLookUrl,
getLegend
};
};
2 changes: 1 addition & 1 deletion src/js/route-draw/route-draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RouteDraw {
this.configuration = this.options.configuration || {
linesource: "route-draw-line",
pointsource: "route-draw-point",
api: "https://wxs.ign.fr/calcul/geoportail/itineraire/rest/1.0.0/route?resource=bdtopo-osrm&getSteps=false&timeUnit=second&",
api: "https://data.geopf.fr/navigation/itineraire?resource=bdtopo-osrm&getSteps=false&timeUnit=second&",
template: (values) => {
return `start=${values.start.lng},${values.start.lat}&end=${values.end.lng},${values.end.lat}&profile=${values.profile}`
}
Expand Down

0 comments on commit 7887c18

Please sign in to comment.