forked from MapComplete/MapComplete
Fix snapping
This commit is contained in:
parent
82f165497a
commit
f9d4df39f9
2 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue