diff --git a/src/js/elevation-line-control.js b/src/js/elevation-line-control.js
index 01ceec07..d99e8aad 100644
--- a/src/js/elevation-line-control.js
+++ b/src/js/elevation-line-control.js
@@ -125,7 +125,11 @@ class ElevationLineControl {
if (lastLngLat != null) {
currentDistance += currentLngLat.distanceTo(lastLngLat);
}
- let currentDataPoint = {x: currentDistance, y: elevation.z}
+ let elevationValue = elevation.z;
+ if (elevationValue == -99999) {
+ elevationValue = 0;
+ }
+ let currentDataPoint = {x: currentDistance, y: elevationValue}
this.elevationData.push(currentDataPoint);
lastLngLat = currentLngLat;
});
diff --git a/src/js/my-position.js b/src/js/my-position.js
index d97e17d6..26d05830 100644
--- a/src/js/my-position.js
+++ b/src/js/my-position.js
@@ -80,6 +80,25 @@ class Position {
var longitude = this.coordinates.lon;
var altitude = this.elevation;
+ // adresse disponible
+ var templateAddress = `
+ ${address.number} ${address.street}
+ ${address.postcode} ${address.city}
+ `
+ // pas d'adresse
+ if (!address.street) {
+ templateAddress = `
+ ${address.city} ${address.postcode}
+ `
+ }
+ // Ni adress ni poi
+ if (!address.city) {
+ templateAddress = `
+ ${latitude}, ${longitude}
+ `
+ }
+
+
// template litteral
this.contentPopup = `