UX: add 'show nearby picture' in new point popup

This commit is contained in:
Pieter Vander Vennet 2025-04-28 15:09:17 +02:00
parent d56cf56511
commit dad9bb1349
8 changed files with 37 additions and 24 deletions

View file

@ -187,7 +187,7 @@ export default class LayerConfig extends WithContextLoader {
)
}
if (pr.snapToLayer !== undefined) {
let snapToLayers = pr.snapToLayer
const snapToLayers = pr.snapToLayer
preciseInput = {
snapToLayers,
maxSnapDistance: pr.maxSnapDistance ?? 10,
@ -277,8 +277,9 @@ export default class LayerConfig extends WithContextLoader {
tr["rewrite"] === undefined
) ?? []
if (missingIds?.length > 0 && official) {
console.error("Some tagRenderings of", this.id, "are missing an id:", missingIds)
throw "Missing ids in tagrenderings"
const msg = `Context: ${context}; Some tagRenderings of ${this.id} are missing an id: ${missingIds.map(x => JSON.stringify(x)).join(", ")} `
console.error(msg)
throw msg
}
this.tagRenderings = (Utils.NoNull(json.tagRenderings) ?? []).map(