Adjust matchscore, feature filters to boost physical tags over boundary

(closes #6162)
This commit is contained in:
Bryan Housel
2019-04-11 21:26:53 -04:00
parent 891de117f4
commit dda810683e
3 changed files with 15 additions and 8 deletions

View File

@@ -269,7 +269,7 @@
"barrier/stile": {"icon": "maki-roadblock", "fields": ["access"], "geometry": ["vertex"], "tags": {"barrier": "stile"}, "name": "Stile"},
"barrier/toll_booth": {"icon": "maki-roadblock", "fields": ["access", "building_area", "payment_multi", "currency_multi"], "moreFields": ["address", "website", "phone", "email", "fax"], "geometry": ["vertex", "area"], "tags": {"barrier": "toll_booth"}, "name": "Toll Booth"},
"barrier/wall": {"icon": "temaki-wall", "fields": ["wall", "height", "material"], "geometry": ["line", "area"], "tags": {"barrier": "wall"}, "name": "Wall", "matchScore": 0.25},
"boundary/administrative": {"name": "Administrative Boundary", "geometry": ["line"], "tags": {"boundary": "administrative"}, "fields": ["name", "admin_level"]},
"boundary/administrative": {"fields": ["name", "admin_level"], "geometry": ["line"], "tags": {"boundary": "administrative"}, "name": "Administrative Boundary", "matchScore": 0.5},
"bridge/support": {"icon": "fas-archway", "fields": ["bridge/support"], "moreFields": ["material", "seamark/type"], "geometry": ["point", "vertex", "area"], "tags": {"bridge:support": "*"}, "name": "Bridge Support"},
"bridge/support/pier": {"icon": "fas-archway", "fields": ["bridge/support"], "moreFields": ["material", "seamark/type"], "geometry": ["point", "vertex", "area"], "tags": {"bridge:support": "pier"}, "name": "Bridge Pier"},
"building_part": {"icon": "maki-building", "fields": ["levels", "height", "building/material", "roof/colour"], "moreFields": ["layer"], "geometry": ["area"], "tags": {"building:part": "*"}, "matchScore": 0.5, "terms": ["roof", "simple 3D buildings"], "name": "Building Part"},

View File

@@ -1,13 +1,14 @@
{
"name": "Administrative Boundary",
"fields": [
"name",
"admin_level"
],
"geometry": [
"line"
],
"tags": {
"boundary": "administrative"
},
"fields": [
"name",
"admin_level"
]
}
"name": "Administrative Boundary",
"matchScore": 0.5
}

View File

@@ -138,7 +138,13 @@ export function rendererFeatures(context) {
) && !(
traffic_roads[tags.highway] ||
service_roads[tags.highway] ||
paths[tags.highway]
paths[tags.highway] ||
tags.waterway ||
tags.railway ||
tags.landuse ||
tags.natural ||
tags.building ||
tags.power
);
});