refactoring: split all the states

This commit is contained in:
Pieter Vander Vennet 2023-03-25 02:48:24 +01:00
parent 4d48b1cf2b
commit 8e2f04c0d0
32 changed files with 411 additions and 395 deletions

View file

@ -15,6 +15,7 @@
]
},
"iconSize": "40,40,center",
"pitchAlignment": "map",
"rotation": {
"render": "0deg",
"mappings": [

View file

@ -2,7 +2,7 @@
"id": "home_location",
"description": "Meta layer showing the home location of the user. The home location can be set in the [profile settings](https://www.openstreetmap.org/profile/edit) of OpenStreetMap.",
"minzoom": 0,
"source":"special",
"source": "special",
"mapRendering": [
{
"icon": {

View file

@ -1,6 +1,6 @@
{
"id": "import_candidate",
"description": "Layer used in the importHelper",
"description": "Layer used as template in the importHelper",
"source":"special",
"mapRendering": [
{

View file

@ -6,9 +6,9 @@
"name": null,
"mapRendering": [
{
"width": 4,
"width": 3,
"fill": "no",
"color": "#ff000088"
"color": "#cc00cc"
}
]
}

View file

@ -2,9 +2,7 @@
"id": "split_point",
"description": "Layer rendering the little scissors for the minimap in the 'splitRoadWizard'",
"minzoom": 1,
"source": {
"osmTags": "_split_point=yes"
},
"source": "special",
"name": "Split point",
"title": "Split point",
"mapRendering": [
@ -17,4 +15,4 @@
"iconSize": "30,30,center"
}
]
}
}

View file

@ -1,10 +0,0 @@
{
"id": "type_node",
"description": "This is a priviliged meta_layer which exports _every_ point in OSM. This only works if zoomed below the point that the full tile is loaded (and not loaded via Overpass). Note that this point will also contain a property `parent_ways` which contains all the ways this node is part of as a list. This is mainly used for extremely specialized themes, which do advanced conflations. Expert use only.",
"minzoom": 18,
"source": "special",
"mapRendering": null,
"name": "All OSM Nodes",
"title": "OSM node {id}",
"tagRendering": []
}

View file

@ -28,29 +28,6 @@
"minzoom": 19
},
"layers": [
{
"builtin": "type_node",
"override": {
"calculatedTags": [
"_is_part_of_building=feat.get('parent_ways')?.some(p => p.building !== undefined && p.building !== '') ?? false",
"_is_part_of_grb_building=feat.get('parent_ways')?.some(p => p['source:geometry:ref'] !== undefined) ?? false",
"_is_part_of_building_passage=feat.get('parent_ways')?.some(p => p.tunnel === 'building_passage') ?? false",
"_is_part_of_highway=!feat.get('is_part_of_building_passage') && (feat.get('parent_ways')?.some(p => p.highway !== undefined && p.highway !== '') ?? false)",
"_is_part_of_landuse=feat.get('parent_ways')?.some(p => (p.landuse !== undefined && p.landuse !== '') || (p.natural !== undefined && p.natural !== '')) ?? false",
"_moveable=feat.get('_is_part_of_building') && !feat.get('_is_part_of_grb_building')"
],
"mapRendering": [
{
"icon": "square:#cc0",
"iconSize": "5,5,center",
"location": [
"point"
]
}
],
"passAllFeatures": true
}
},
{
"id": "osm-buildings",
"name": "All OSM-buildings",
@ -771,4 +748,4 @@
"overpassMaxZoom": 17,
"osmApiTileSize": 17,
"credits": "Pieter Vander Vennet"
}
}