forked from MapComplete/MapComplete
Add export_as_geojson, open_in_id and open_in_josm special renderings
This commit is contained in:
parent
b0f0a57bc7
commit
7f829a3578
8 changed files with 144 additions and 60 deletions
|
@ -16,7 +16,7 @@
|
|||
{
|
||||
"location": "point",
|
||||
"icon": {
|
||||
"render": "addSmall:#000",
|
||||
"render": "addSmall:#000",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "detach=yes",
|
||||
|
|
|
@ -3,11 +3,16 @@
|
|||
"description": "The default rendering for a locationInput which snaps onto another object",
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": []}
|
||||
"and": []
|
||||
}
|
||||
},
|
||||
"mapRendering": [{
|
||||
"location": ["point","centroid"],
|
||||
"icon": "./assets/svg/crosshair-empty.svg"
|
||||
}]
|
||||
|
||||
"mapRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"icon": "./assets/svg/crosshair-empty.svg"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -99,8 +99,7 @@
|
|||
"osmTags": "building~*",
|
||||
"maxCacheAge": 0
|
||||
},
|
||||
"calculatedTags": [
|
||||
],
|
||||
"calculatedTags": [],
|
||||
"mapRendering": [
|
||||
{
|
||||
"width": {
|
||||
|
@ -319,7 +318,6 @@
|
|||
"render": "Service road"
|
||||
},
|
||||
"tagRenderings": []
|
||||
|
||||
},
|
||||
{
|
||||
"id": "generic_osm_object",
|
||||
|
@ -475,7 +473,10 @@
|
|||
"description": "Geometry which comes from GRB with tools to import them",
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"and": ["HUISNR~*","man_made!=mast"]
|
||||
"and": [
|
||||
"HUISNR~*",
|
||||
"man_made!=mast"
|
||||
]
|
||||
},
|
||||
"geoJson": "https://betadata.grbosm.site/grb?bbox={x_min},{y_min},{x_max},{y_max}",
|
||||
"geoJsonZoomLevel": 18,
|
||||
|
@ -508,7 +509,8 @@
|
|||
"id": "Import-button",
|
||||
"render": "{import_way_button(OSM-buildings,building=$building;man_made=$man_made; source:geometry:date=$_grb_date; source:geometry:ref=$_grb_ref; addr:street=$addr:street; addr:housenumber=$addr:housenumber; building:min_level=$_building:min_level, Upload this building to OpenStreetMap,,_is_part_of_building=true,1,_moveable=true)}",
|
||||
"mappings": [
|
||||
{"#": "Hide import button if intersection with other objects are detected",
|
||||
{
|
||||
"#": "Hide import button if intersection with other objects are detected",
|
||||
"if": "_intersects_with_other_features~*",
|
||||
"then": "This GRB building intersects with the following features: {_intersects_with_other_features}.<br/>Fix the overlap and try again"
|
||||
},
|
||||
|
@ -555,7 +557,6 @@
|
|||
"if": "_osm_obj:addr:housenumber~*",
|
||||
"then": "The overlapping building only has a housenumber known: {_osm_obj:addr:housenumber}"
|
||||
},
|
||||
|
||||
{
|
||||
"if": "_osm_obj:id=",
|
||||
"then": "No overlapping OpenStreetMap-building found"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue