adds list link sharing

This commit is contained in:
Christian Beutel
2024-09-13 21:34:40 +02:00
parent 4e257d798d
commit 4263c32ca7
10 changed files with 58 additions and 66 deletions

View File

@@ -30,7 +30,7 @@ export const Elevation = L.Control.Elevation = L.Control.extend({
Object.assign(this.options, options)
if (!this.options.showStartEnd) {
this._circleMarkers.remove();
} else if (this._data.length) {
} else if (this._data.length && this._map) {
this._circleMarkers.addTo(this._map);
}
},