adb-shared 6.2.6 → 6.2.7

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.
@@ -14,7 +14,8 @@ import * as i4 from '@angular/forms';
14
14
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule, FormControl, FormGroup, FormArray, Validators, ReactiveFormsModule } from '@angular/forms';
15
15
  import { delay, debounceTime, switchMap, map, catchError as catchError$1, finalize } from 'rxjs/operators';
16
16
  import * as Leaflet from 'leaflet';
17
- import 'leaflet.pm';
17
+ import Leaflet__default from 'leaflet';
18
+ import '@geoman-io/leaflet-geoman-free';
18
19
 
19
20
  class EnvironmentService {
20
21
  constructor(environment) {
@@ -2976,7 +2977,7 @@ class PolygonDrawerInput {
2976
2977
  this.map.pm.enableDraw('Polygon', {
2977
2978
  tooltips: false,
2978
2979
  finishOn: 'snap',
2979
- snapDistance: 25,
2980
+ snapDistance: 35,
2980
2981
  snapMiddle: false
2981
2982
  });
2982
2983
  this.map.on("pm:create", (e) => {
@@ -2985,7 +2986,7 @@ class PolygonDrawerInput {
2985
2986
  this.polygonDraw = false;
2986
2987
  this.map.pm.disableDraw();
2987
2988
  this.clearShape();
2988
- this.shapeLayer = Leaflet.geoJSON(e.layer.toGeoJSON(), {
2989
+ this.shapeLayer = Leaflet__default.geoJSON(e.layer.toGeoJSON(), {
2989
2990
  interactive: false
2990
2991
  });
2991
2992
  this.map.addLayer(this.shapeLayer);
@@ -2996,7 +2997,7 @@ class PolygonDrawerInput {
2996
2997
  }
2997
2998
  renderInitialShape() {
2998
2999
  if (this.geoJson?.type === "Feature") {
2999
- this.shapeLayer = Leaflet.geoJSON(this.geoJson, {
3000
+ this.shapeLayer = Leaflet__default.geoJSON(this.geoJson, {
3000
3001
  interactive: false
3001
3002
  });
3002
3003
  this.map.addLayer(this.shapeLayer);