From 8bdd541ac5e4d19fabfcfdf012d2e11d65db606a Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 21 Mar 2019 12:29:21 -0400 Subject: [PATCH] Add Toy Library preset (closes #5390) --- data/presets.yaml | 5 ++++ data/presets/presets.json | 1 + data/presets/presets/amenity/toy_library.json | 25 +++++++++++++++++++ data/taginfo.json | 1 + dist/locales/en.json | 4 +++ 5 files changed, 36 insertions(+) create mode 100644 data/presets/presets/amenity/toy_library.json diff --git a/data/presets.yaml b/data/presets.yaml index 5374b0cd4..8d7997f8a 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -2994,6 +2994,11 @@ en: name: Town Hall # 'terms: village,city,government,courthouse,municipal' terms: '' + amenity/toy_library: + # amenity=toy_library + name: Toy Library + # 'terms: game,toy' + terms: '' amenity/university: # amenity=university name: University Grounds diff --git a/data/presets/presets.json b/data/presets/presets.json index bc133d1be..91d962234 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -192,6 +192,7 @@ "amenity/theatre/type/amphi": {"icon": "maki-theatre", "fields": ["name", "operator", "address", "lit"], "geometry": ["point", "area"], "terms": ["open air", "outdoor", "greek", "ampi"], "tags": {"amenity": "theatre", "theatre:type": "amphi"}, "name": "Amphitheatre"}, "amenity/toilets": {"icon": "maki-toilet", "fields": ["toilets/disposal", "building_area", "access_simple", "gender", "diaper", "wheelchair"], "moreFields": ["fee", "opening_hours", "operator", "payment_multi"], "geometry": ["point", "vertex", "area"], "terms": ["bathroom", "restroom", "outhouse", "privy", "head", "lavatory", "latrine", "water closet", "WC", "W.C."], "tags": {"amenity": "toilets"}, "name": "Toilets"}, "amenity/townhall": {"icon": "maki-town-hall", "fields": ["name", "operator", "address", "building_area"], "moreFields": ["website", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "terms": ["village", "city", "government", "courthouse", "municipal"], "tags": {"amenity": "townhall"}, "name": "Town Hall"}, + "amenity/toy_library": {"icon": "fas-chess-knight", "fields": ["operator", "address", "building_area", "opening_hours"], "moreFields": ["website", "wheelchair"], "geometry": ["point", "area"], "terms": ["game", "toy"], "tags": {"amenity": "toy_library"}, "name": "Toy Library"}, "amenity/university": {"icon": "maki-college", "fields": ["{amenity/college}"], "moreFields": ["{amenity/college}"], "geometry": ["point", "area"], "terms": ["college", "graduate school", "PhD program", "master's degree program"], "tags": {"amenity": "university"}, "name": "University Grounds"}, "amenity/vehicle_inspection": {"icon": "maki-car", "fields": ["name", "operator", "address", "building_area", "opening_hours"], "moreFields": ["payment_multi", "website", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "terms": ["car inspection"], "tags": {"amenity": "vehicle_inspection"}, "name": "Vehicle Inspection"}, "amenity/vending_machine": {"icon": "temaki-vending_machine", "fields": ["vending", "operator", "payment_multi", "currency_multi"], "geometry": ["point"], "terms": [], "tags": {"amenity": "vending_machine"}, "name": "Vending Machine"}, diff --git a/data/presets/presets/amenity/toy_library.json b/data/presets/presets/amenity/toy_library.json new file mode 100644 index 000000000..50c137ebb --- /dev/null +++ b/data/presets/presets/amenity/toy_library.json @@ -0,0 +1,25 @@ +{ + "icon": "fas-chess-knight", + "fields": [ + "operator", + "address", + "building_area", + "opening_hours" + ], + "moreFields": [ + "website", + "wheelchair" + ], + "geometry": [ + "point", + "area" + ], + "terms": [ + "game", + "toy" + ], + "tags": { + "amenity": "toy_library" + }, + "name": "Toy Library" +} diff --git a/data/taginfo.json b/data/taginfo.json index 53ccbe1e2..96881dde1 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -189,6 +189,7 @@ {"key": "theatre:type", "value": "amphi", "description": "🄿 Amphitheatre", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/theatre-15.svg?sanitize=true"}, {"key": "amenity", "value": "toilets", "description": "🄿 Toilets", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/toilet-15.svg?sanitize=true"}, {"key": "amenity", "value": "townhall", "description": "🄿 Town Hall", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/town-hall-15.svg?sanitize=true"}, + {"key": "amenity", "value": "toy_library", "description": "🄿 Toy Library", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-chess-knight.svg?sanitize=true"}, {"key": "amenity", "value": "university", "description": "🄿 University Grounds", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/college-15.svg?sanitize=true"}, {"key": "amenity", "value": "vehicle_inspection", "description": "🄿 Vehicle Inspection", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/car-15.svg?sanitize=true"}, {"key": "amenity", "value": "vending_machine", "description": "🄿 Vending Machine", "object_types": ["node"], "icon_url": "https://raw.githubusercontent.com/bhousel/temaki/master/icons/vending_machine.svg?sanitize=true"}, diff --git a/dist/locales/en.json b/dist/locales/en.json index f00506a36..f3d977b10 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -4716,6 +4716,10 @@ "name": "Town Hall", "terms": "village,city,government,courthouse,municipal" }, + "amenity/toy_library": { + "name": "Toy Library", + "terms": "game,toy" + }, "amenity/university": { "name": "University Grounds", "terms": "college,graduate school,PhD program,master's degree program"