gis-leaflet-helper 3.3.10 → 3.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30346,7 +30346,7 @@ const Draw = leafletSrcExports.Handler.extend({
30346
30346
  latLng = this.geometry._latlng;
30347
30347
  }
30348
30348
  const _leaflet_id = this.geometry._leaflet_id;
30349
- new leafletSrcExports.Marker(latLng, {
30349
+ const marker = new leafletSrcExports.Marker(latLng, {
30350
30350
  icon: new leafletSrcExports.Icon({
30351
30351
  iconUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAFRJREFUKFOlklEKACAIQ7f7H9rQkJYFFUVfY49NiwBgcc+HABlmu/K7HQMge0SFVd8CCqU5tQlwUQ06UqYuwA7Siv/AU6U6YK3n1f7Wen7onvD6NRqqukP5oM7XCQAAAABJRU5ErkJggg==",
30352
30352
  iconSize: [12, 12],
@@ -30356,7 +30356,8 @@ const Draw = leafletSrcExports.Handler.extend({
30356
30356
  }).on("click", (ev) => {
30357
30357
  this._map.removeLayerById(_leaflet_id);
30358
30358
  _measurementLayer == null ? void 0 : _measurementLayer.clearLayers();
30359
- }).addTo(_measurementLayer);
30359
+ marker.remove();
30360
+ }).addTo(this._map);
30360
30361
  }
30361
30362
  }
30362
30363
  leafletSrcExports.Util.setOptions(this, Draw.prototype.options);