mapcomplete/assets/themes/grb_import/grb.json

348 lines
8.5 KiB
JSON
Raw Normal View History

2021-03-21 15:12:53 +01:00
{
"id": "grb",
"title": {
"nl": "GRB Fixup"
},
"shortDescription": {
"nl": "Grb Fixup"
},
"description": {
"nl": "GRB Fixup"
},
"language": [
"nl"
],
"maintainer": "",
"icon": "./assets/svg/bug.svg",
"version": "0",
"startLat": 51.2132,
"startLon": 3.231,
"startZoom": 14,
"widenFactor": 2,
2021-03-21 15:12:53 +01:00
"socialImage": "",
"overpassMaxZoom": 18,
"osmApiTileSize": 17,
2021-03-21 15:12:53 +01:00
"layers": [
{
"id": "OSM-buildings",
"name": "All OSM-buildings",
"source": {
"osmTags": "building~*",
"maxCacheAge": 0
},
"minzoom": 18,
"width": {
"render": "2"
},
"color": {
"render": "#00c",
"mappings": [
{
"if": "building=house",
"then": "#a00"
},
{
"if": "building=shed",
"then": "#563e02"
},
{
"if": {
"or": ["building=garage","building=garages"]
},
"then": "#f9bfbb"
},
{
"if": "building=yes",
"then": "#0774f2"
}
]
},
"title": "OSM-gebouw",
"tagRenderings": [
"all_tags"
]
},
{
"id": "All OSM objects",
"name": "All OSM Objects",
"source": {
"osmTags":{
"and": [
"id~*",
"landuse=",
"place=",
"disused:power=",
"power=",
"type!=boundary",
"boundary=",
{
"or": [
"level=",
"level=0"
]
},
{
"or": [
"layer=0",
"layer="
]
}
]
},
"maxCacheAge": 0
},
"minzoom": 18,
"color": {
"render": "#00c"
},
"width": {
"render": "1"
},
"title": {
"render": {
"*": "OSM-Object"
}
},
"tagRenderings": [
"all_tags"
]
},
2021-03-21 15:12:53 +01:00
{
"id": "osm-fixmes",
2021-03-21 15:12:53 +01:00
"name": {
"nl": "Fixmes op gebouwen"
},
"minzoom": 21,
2021-03-21 15:12:53 +01:00
"source": {
"maxCacheAge": 0,
2021-03-21 15:12:53 +01:00
"osmTags": {
"and": [
"fixme~*",
"building~*"
]
}
},
2021-04-11 19:21:41 +02:00
"calculatedTags": [
"_grbNumber=(feat.properties.fixme?.match(/GRB thinks that this has number ([^;]+)/ ) ?? ['','none']) [1]"
],
2021-03-21 15:12:53 +01:00
"title": {
"render": {
"nl": "{addr:street} {addr:housenumber}"
},
"mappings": [
{
"if": {
"and": [
"fixme~*"
]
},
"then": {
"nl": "{fixme}"
}
}
]
},
"description": {
"nl": "Dit gebouw heeft een foutmelding"
},
"tagRenderings": [
{
2021-09-26 19:56:40 +02:00
"id": "grb-housenumber",
2021-03-21 15:12:53 +01:00
"render": {
"nl": "Het huisnummer is <b>{addr:housenumber}</b>"
},
"question": {
"nl": "Wat is het huisnummer?"
},
"freeform": {
"key": "addr:housenumber"
},
"mappings": [
{
"if": {
"and": [
"not:addr:housenumber=yes",
"addr:housenumber="
]
},
"then": {
"nl": "Geen huisnummer"
}
2021-04-11 19:21:41 +02:00
},
{
"if": {
"and": [
"addr:housenumber:={_grbNumber}",
"fixme="
]
},
"then": "Het huisnummer is <b>{_grbNumber}</b>, wat overeenkomt met het GRB",
"hideInAnswer": {
"or": [
"_grbNumber=",
"_grbNumber=none",
"_grbNumber=no number"
]
}
},
{
"if": {
"and": [
2021-09-04 18:59:51 +02:00
"addr:housenumber=",
2021-04-11 19:21:41 +02:00
"not:addr:housenumber=yes",
"fixme="
]
},
"then": "Dit gebouw heeft geen nummer, net zoals in het GRB",
"hideInAnswer": "_grbNumber!=no number"
2021-03-21 15:12:53 +01:00
}
]
},
{
2021-09-26 19:56:40 +02:00
"id": "grb-unit",
2021-04-11 19:21:41 +02:00
"question": "Wat is de wooneenheid-aanduiding?",
2021-03-21 15:12:53 +01:00
"render": {
2021-04-11 19:21:41 +02:00
"nl": "De wooneenheid-aanduiding is <b>{addr:unit}</b> "
2021-03-21 15:12:53 +01:00
},
"freeform": {
"key": "addr:unit"
},
"mappings": [
{
"if": "addr:unit=",
"then": "Geen wooneenheid-nummer"
}
]
},
{
2021-09-26 19:56:40 +02:00
"id": "grb-street",
2021-03-21 15:12:53 +01:00
"render": {
"nl": "De straat is <b>{addr:street}</b>"
},
"freeform": {
"key": "addr:street"
},
"question": {
"nl": "Wat is de straat?"
}
},
{
2021-09-26 19:56:40 +02:00
"id": "grb-fixme",
2021-03-21 15:12:53 +01:00
"render": {
"nl": "De fixme is <b>{fixme}</b>"
},
"question": {
"nl": "Wat zegt de fixme?"
},
"freeform": {
"key": "fixme"
},
"mappings": [
{
"if": {
"and": [
"fixme="
]
},
"then": {
"nl": "Geen fixme"
}
}
]
},
{
2021-09-26 19:56:40 +02:00
"id": "grb-min-level",
2021-03-21 15:12:53 +01:00
"render": {
"nl": "Dit gebouw begint maar op de {building:min_level} verdieping"
},
"question": {
"nl": "Hoeveel verdiepingen ontbreken?"
},
"freeform": {
"key": "building:min_level",
"type": "pnat"
}
}
],
2021-04-11 19:21:41 +02:00
"label": {
"mappings": [
{
"if": "addr:housenumber~*",
"then": "<div style='background-color: white; font: large; width: 1.5em; height: 1.5em; border-radius: 100%'>{addr:housenumber}</div>"
}
]
2021-03-21 15:12:53 +01:00
},
"width": {
"render": "2"
},
"iconSize": {
"render": "40,40,center"
},
"dashes": "2 2",
"color": {
"render": "#00f"
},
2021-04-11 19:21:41 +02:00
"wayHandling": 2,
2021-03-21 15:12:53 +01:00
"presets": []
},
{
"id": "crab-addresses 2021-10-26",
"source": {
"osmTags": "HUISNR~*",
"geoJson": "https://raw.githubusercontent.com/pietervdvn/pietervdvn.github.io/master/CRAB_2021_10_26/tile_{z}_{x}_{y}.geojson",
"#geoJson": "https://pietervdvn.github.io/CRAB_2021_10_26/tile_{z}_{x}_{y}.geojson",
"geoJsonZoomLevel": 18,
"maxCacheAge": 0
},
"minzoom": 19,
"name": "CRAB-addressen",
"title": "CRAB-adres",
"icon": "circle:#bb3322",
"iconSize": "15,15,center",
"tagRenderings": [
"all_tags",
{
"id": "import-button",
"render": "{import_button(addr:street=$STRAATNM; addr:housenumber=$HUISNR)}"
}
]
},
{
"id": "GRB",
"source": {
"geoJson": "https://betadata.grbosm.site/grb?bbox={x_min},{y_min},{x_max},{y_max}",
"geoJsonZoomLevel": 18,
"mercatorCrs": true,
"maxCacheAge": 0
},
"name": "GRB geometries",
"title": "GRB outline",
"minzoom": 19,
"calculatedTags": [
"_overlaps_with=feat.overlapWith('OSM-buildings').filter(f => f.overlap > 1 && feat.properties._surface - f.overlap < 5)[0]",
"_osm_obj:source:ref=JSON.parse(feat.properties._overlaps_with).feat.properties['source:geometry:ref']",
"_osm_obj:source:date=JSON.parse(feat.properties._overlaps_with).feat.properties['source:geometry:date']",
"_imported_osm_object_found= feat.properties['_osm_obj:source:ref'] == feat.properties['source:geometry:entity'] + '/' + feat.properties['source:geometry:oidn']",
"_grb_date=feat.properties['source:geometry:date'].replace(/\\//g,'-')",
"_imported_osm_still_fresh= feat.properties['_osm_obj:source:date'] == feat.properties._grb_date"
],
"tagRenderings": [
"all_tags"
],
"color": {
"render": "#00a",
"mappings": [
{
"if": {
"and": ["_imported_osm_object_found=true","_imported_osm_still_fresh=true"]
},
"then": "#0f0"
}
]
}
2021-03-21 15:12:53 +01:00
}
],
"hideFromOverview": true,
"defaultBackgroundId": "AGIVFlandersGRB"
}