Fix tests

This commit is contained in:
Pieter Vander Vennet 2022-01-06 15:33:25 +01:00
parent 3176a4d665
commit bc1590fd08
3 changed files with 319 additions and 144 deletions

View file

@ -43,28 +43,10 @@
"iconSize": "15,15,center"
}
],
"calculatedTags": [
"_embedded_crab_addresses= Number(feat.properties.zoom) >= 18 ? feat.overlapWith('crab_address').length : undefined"
],
"minZoom": 18,
"tagRenderings": [
{
"id": "hw",
"render": "There are {_embedded_crab_addresses} adresses in view",
"mappings": [
{
"if": "zoom<18",
"then": "Zoom in more..."
},
{
"if": "_embedded_crab_addresses=",
"then": "Loading..."
},
{
"if": "_embedded_crab_addresses=0",
"then": "No CRAB addresses in view. Zoom in more to see them"
}
]
"render": "Beep boop! I'm a bot!"
}
]
}