Fix snapping

This commit is contained in:
Pieter Vander Vennet 2022-02-07 02:12:51 +01:00
parent 82f165497a
commit f9d4df39f9
2 changed files with 1 additions and 2 deletions

View file

@ -148,7 +148,6 @@ export default class LocationInput extends InputElement<Loc> implements MinimapO
}
)
this.leafletMap = this.map.leafletMap
this.bounds = this.map.bounds;
this.location = this.map.location;
}

View file

@ -78,7 +78,7 @@ export default class ConfirmLocationOfPoint extends Combine {
// return;
}
bbox = bbox.pad(Math.max(preset.boundsFactor, 2), Math.max(preset.boundsFactor, 2));
bbox = bbox.pad(Math.max(preset.boundsFactor ?? 0.25, 2), Math.max(preset.boundsFactor ?? 0.25, 2));
loadedBbox = bbox;
const allFeatures: { feature: any }[] = []
preset.preciseInput.snapToLayers.forEach(layerId => {