mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 03:41:33 +00:00
Adjust matchscore, feature filters to boost physical tags over boundary
(closes #6162)
This commit is contained in:
@@ -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"},
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user