forked from MapComplete/MapComplete
Fix loading external velopark data
This commit is contained in:
parent
250eede658
commit
505844b64a
6 changed files with 26 additions and 12 deletions
|
@ -1641,13 +1641,18 @@ export default class SpecialVisualizations {
|
|||
},
|
||||
{
|
||||
funcName: "compare_data",
|
||||
needsUrls: (args) => args[0],
|
||||
needsUrls: (args) => args[1].split(";"),
|
||||
args:[
|
||||
{
|
||||
name: "url",
|
||||
required: true,
|
||||
doc: "The attribute containing the url where to fetch more data"
|
||||
},
|
||||
{
|
||||
name:"host",
|
||||
required:true,
|
||||
doc: "The domain name(s) where data might be fetched from - this is needed to set the CSP. A domain must include 'https', e.g. 'https://example.com'. For multiple domains, separate them with ';'. If you don't know the possible domains, use '*'. "
|
||||
},
|
||||
{
|
||||
name: "postprocessing",
|
||||
required: false,
|
||||
|
@ -1657,7 +1662,7 @@ export default class SpecialVisualizations {
|
|||
docs: "Gives an interactive element which shows a tag comparison between the OSM-object and the upstream object. This allows to copy some or all tags into OSM",
|
||||
constr(state: SpecialVisualizationState, tagSource: UIEventSource<Record<string, string>>, args: string[], feature: Feature, layer: LayerConfig): BaseUIElement {
|
||||
const url = args[0]
|
||||
const postprocessVelopark = args[1] === "velopark"
|
||||
const postprocessVelopark = args[2] === "velopark"
|
||||
return new SvelteUIElement(ComparisonTool, {url, postprocessVelopark, state, tags: tagSource, layer, feature})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue