Fix snapping to layers for the import button

This commit is contained in:
Pieter Vander Vennet 2021-12-05 05:21:03 +01:00
parent 4f403c4bfc
commit ae045b75cf
3 changed files with 14 additions and 9 deletions

View file

@ -91,7 +91,7 @@ export default class SimpleAddUI extends Toggle {
return presetsOverview
}
function confirm(tags, location, snapOntoWayId?: string) {
function confirm(tags:any[], location: {lat: number, lon:number}, snapOntoWayId?: string) {
if (snapOntoWayId === undefined) {
createNewPoint(tags, location, undefined)
} else {