diff --git a/assets/layers/indoors/indoors.json b/assets/layers/indoors/indoors.json new file mode 100644 index 000000000..1c14a47e8 --- /dev/null +++ b/assets/layers/indoors/indoors.json @@ -0,0 +1,81 @@ +{ + "id": "indoors", + "name": { + "en": "indoors" + }, + "source": { + "osmTags": { + "or": [ + "indoor=room", + "indoor=area", + "indoor=wall", + "indoor=door", + "indoor=level" + ] + } + }, + "title": { + "render": { + "en": "Indoor area {name}" + }, + "mappings": [ + { + "if": "indoor=room", + "then": "Indoor Room {name}" + }, + { + "if": "indoor=area", + "then": "Indoor Area {name}" + }, + { + "if": "indoor=wall", + "then": "Indoor Wall {name}" + }, + { + "if": "indoor=corridor", + "then": "Indoor Corridor {name}" + }, + { + "if": "indoor=door", + "then": "Indoor Door {name}" + }, + { + "if": "indoor=level", + "then": "Indoor Level {name}" + } + ] + }, + "minzoom": 13, + "tagRenderings": [ + "images" + ], + "mapRendering": [ + { + "color": { + "render": "#bb004488" + }, + "width": { + "render": "8" + }, + "offset": { + "render": "-4" + }, + "fill": "no" + }, + { + "color": "red", + "fill": "no", + "width": "2" + }, + { + "label": { + "render": "
{name}
", + "condition": "name~*" + }, + "location": [ + "point", + "centroid" + ] + } + ] +} \ No newline at end of file diff --git a/assets/themes/indoors/crest.svg b/assets/themes/indoors/crest.svg new file mode 100644 index 000000000..383b543b1 --- /dev/null +++ b/assets/themes/indoors/crest.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/assets/themes/indoors/indoors.json b/assets/themes/indoors/indoors.json new file mode 100644 index 000000000..c8964878e --- /dev/null +++ b/assets/themes/indoors/indoors.json @@ -0,0 +1,20 @@ +{ + "id": "indoors", + "title": { + "en": "Indoors" + }, + "description": { + "en": "On this map, publicly accessible indoor places are shown" + }, + "maintainer": "MapComplete", + "icon": "./assets/themes/onwheels/crest.svg", + "version": "0", + "startLat": 51.17181, + "defaultBackgroundId": "CartoDB.Voyager", + "startLon": 4.144383, + "startZoom": 14, + "widenFactor": 2, + "layers": [ + "indoors" + ] +} \ No newline at end of file diff --git a/assets/themes/indoors/license_info.json b/assets/themes/indoors/license_info.json new file mode 100644 index 000000000..9f2dcf81a --- /dev/null +++ b/assets/themes/indoors/license_info.json @@ -0,0 +1,10 @@ +[ + { + "path": "crest.svg", + "license": "CC0", + "authors": [ + "Free Wheelies" + ], + "sources": [] + } +] \ No newline at end of file diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index 90048681e..7b3690cb7 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -211,6 +211,10 @@ "if": "theme=healthcare", "then": "./assets/layers/doctors/doctors.svg" }, + { + "if": "theme=indoors", + "then": "./assets/themes/onwheels/crest.svg" + }, { "if": "theme=kerbs_and_crossings", "then": "./assets/layers/kerbs/KerbIcon.svg" diff --git a/assets/themes/onwheels/onwheels.json b/assets/themes/onwheels/onwheels.json index 0b258c942..662e42dac 100644 --- a/assets/themes/onwheels/onwheels.json +++ b/assets/themes/onwheels/onwheels.json @@ -32,6 +32,11 @@ "walls_and_buildings" ], "overrideAll": { +<<<<<<< HEAD + "minZoom": "15", + "mapRendering": [ + { +======= "+calculatedTags": [ "_poi_walls_and_buildings_entrance_properties=feat.closestn('walls_and_buildings', 1, undefined, 1000).map(w => ({id: w.feat.properties.id, width: w.feat.properties['_entrance:width']}))[0]", "_poi_entrance:width=JSON.parse(feat.properties._poi_walls_and_buildings_entrance_properties)?.width" @@ -64,6 +69,7 @@ "minzoom": "15", "mapRendering": [ { +>>>>>>> develop "label": null } ]