Skip to content

Commit 8d66065

Browse files
committed
Chemin relatif pour le fichier des données
1 parent 14e4d32 commit 8d66065

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

esm/map-examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function MapGeoJSON() {
180180

181181
const mount = async map => {
182182
try {
183-
const response = await fetch("/data/dreal.geojson");
183+
const response = await fetch("data/dreal.geojson");
184184
L.geoJSON(await response.json(), options()).bindPopup(popup, {className: "mapPopup"}).addTo(map);
185185
} catch (e) {
186186
console.error(e);

js/map-examples-nm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ var MapExamples = (() => {
183183

184184
const mount = async map => {
185185
try {
186-
const response = await fetch("/data/dreal.geojson");
186+
const response = await fetch("data/dreal.geojson");
187187
L.geoJSON(await response.json(), options()).bindPopup(popup, {className: "mapPopup"}).addTo(map);
188188
} catch (e) {
189189
console.error(e);

0 commit comments

Comments
 (0)