2021-12-02 02:54:28 +01:00
{
"id" : "crab_address" ,
2023-10-30 18:08:38 +01:00
"name" : "CRAB-addressen" ,
2021-12-06 03:24:33 +01:00
"description" : "Address data for Flanders by the governement, suited for import into OpenStreetMap. Datadump from 2021-10-26. This layer contains only visualisation logic. Import buttons should be added via an override. Note that HNRLABEL contains the original value, whereas _HNRLABEL contains a slightly cleaned version" ,
2021-12-02 02:54:28 +01:00
"source" : {
"osmTags" : "HUISNR~*" ,
2021-12-09 21:12:01 +01:00
"geoJson" : "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/CRAB_2021_10_26/tile_{z}_{x}_{y}.geojson" ,
2021-12-02 02:54:28 +01:00
"geoJsonZoomLevel" : 18 ,
"maxCacheAge" : 0
} ,
2023-09-19 14:04:13 +02:00
"calculatedTags" : [
"_HNRLABEL=(() => {const lbl = feat.properties.HNRLABEL?.split('-')?.map(l => Number(l))?.filter(i => !isNaN (i)) ;if(lbl?.length != 2) {return feat.properties.HNRLABEL}; const addresses = []; for(let i = lbl[0]; i <= lbl[1]; i += 1){addresses.push(''+i);}; return addresses.join(';') })()"
] ,
2023-10-30 18:08:38 +01:00
"title" : "CRAB-adres" ,
2023-09-19 14:04:13 +02:00
"pointRendering" : [
2021-12-02 02:54:28 +01:00
{
"location" : [
"point" ,
"centroid"
] ,
2023-06-20 02:02:45 +02:00
"iconSize" : "50,50" ,
2023-06-20 03:14:18 +02:00
"label" : "<div style='margin-top: -42px; color: white' class='rounded-full p-1 font-bold relative'>{_HNRLABEL}</div>" ,
2023-10-06 23:56:50 +02:00
"anchor" : "center" ,
"marker" : [
{
"icon" : "./assets/layers/crab_address/housenumber_blank.svg"
}
]
2021-12-02 02:54:28 +01:00
}
2021-12-02 23:02:37 +01:00
] ,
2023-10-30 18:08:38 +01:00
"lineRendering" : [ ] ,
"tagRenderings" : [
{
"id" : "render_crab" ,
2023-11-02 04:35:32 +01:00
"render" : "Volgens het CRAB ligt hier <b>{STRAATNM}</b> {HUISNR} (label: {HNRLABEL})"
2023-10-30 18:08:38 +01:00
}
]
2023-06-20 01:52:15 +02:00
}