forked from MapComplete/MapComplete
Fix: note themes uses full URL now instead of Panoramax-id
This commit is contained in:
parent
4395e88390
commit
ce363dfb59
4 changed files with 41 additions and 32 deletions
|
@ -1100,11 +1100,10 @@ export default class SpecialVisualizations {
|
|||
],
|
||||
needsUrls: [Imgur.apiUrl, ...Imgur.supportingUrls],
|
||||
|
||||
constr: (state, tags, args) => {
|
||||
constr: (state, tags, args, feature, layer) => {
|
||||
const id = tags.data[args[0] ?? "id"]
|
||||
tags = state.featureProperties.getStore(id)
|
||||
console.log("Id is", id)
|
||||
return new SvelteUIElement(UploadImage, { state, tags })
|
||||
return new SvelteUIElement(UploadImage, { state, tags, layer })
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue