commit f3d7b01a126e21159c4783dc3f9e9a78ad3cb30f
parent 3acc038faf6fdc484a884b83f533b8f3a9462ca1
Author: Sergey Orlov <wladimirych@gmail.com>
Date: Wed, 15 Jul 2020 23:35:58 +0200
elevation profile: do not show empty control if fetching elevations fails
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/lib/leaflet.control.elevation-profile/index.js b/src/lib/leaflet.control.elevation-profile/index.js
@@ -110,7 +110,6 @@ const ElevationProfile = L.Class.extend({
.catch((e) => {
logging.captureException(e, 'error getting elevation');
notify(`Failed to get elevation data: ${e.message}`);
- that._addTo(map);
});
this.values = null;
},