From ce146bce7fc6bedfda6b1f8a2f25ce770dbce66d Mon Sep 17 00:00:00 2001 From: Sajjad Anwar Date: Tue, 14 May 2019 20:14:41 +0530 Subject: [PATCH] adds a few more starter presets, and sets a clear search placeholder --- app/presets/starter-presets.json | 4 ++++ app/screens/Features/SelectFeatureType.js | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/presets/starter-presets.json b/app/presets/starter-presets.json index 2a1f2c7cf..b69fea82d 100644 --- a/app/presets/starter-presets.json +++ b/app/presets/starter-presets.json @@ -1,6 +1,10 @@ { "presets": { "building": {"icon": "maki-home", "fields": ["name", "building", "levels", "height", "address"], "moreFields": ["architect", "building/material", "layer", "roof/colour", "smoking", "wheelchair"], "geometry": ["point", "area"], "tags": {"building": "*"}, "matchScore": 0.6, "terms": [], "name": "Building"}, + "highway/bus_stop": {"icon": "maki-bus", "fields": ["name", "network", "operator", "bench", "shelter"], "geometry": ["point", "vertex"], "tags": {"highway": "bus_stop"}, "name": "Bus Stop / Platform", "searchable": false}, + "natural/tree": {"icon": "maki-park", "fields": ["leaf_type_singular", "leaf_cycle_singular", "denotation"], "geometry": ["point", "vertex"], "tags": {"natural": "tree"}, "terms": [], "name": "Tree"}, + "amenity/school": {"icon": "maki-school", "fields": ["name", "operator", "address", "religion", "denomination", "website"], "moreFields": ["internet_access", "internet_access/ssid", "phone", "email", "fax", "wheelchair"], "geometry": ["point", "area"], "terms": ["academy", "elementary school", "middle school", "high school"], "tags": {"amenity": "school"}, "name": "School"}, + "amenity/restaurant": {"icon": "maki-restaurant", "fields": ["name", "cuisine", "address", "building_area", "opening_hours", "outdoor_seating"], "moreFields": ["takeaway", "delivery", "capacity", "diet_multi", "smoking", "internet_access", "internet_access/fee", "internet_access/ssid", "website", "phone", "email", "fax", "wheelchair", "bar"], "geometry": ["point", "area"], "terms": ["bar", "breakfast", "cafe", "café", "canteen", "coffee", "dine", "dining", "dinner", "drive-in", "eat", "grill", "lunch", "table"], "tags": {"amenity": "restaurant"}, "name": "Restaurant"}, "point": {"fields": ["name"], "geometry": ["point"], "tags": {}, "name": "Point", "matchScore": 0.1} } } diff --git a/app/screens/Features/SelectFeatureType.js b/app/screens/Features/SelectFeatureType.js index 7c5a4f14e..a489bb9a4 100644 --- a/app/screens/Features/SelectFeatureType.js +++ b/app/screens/Features/SelectFeatureType.js @@ -164,6 +164,11 @@ class SelectFeatureType extends React.Component { contentWidth={win.width - 32} inputStyle={{ paddingBottom: 8 }} keyboardShouldPersist={false} + placeholder='Search for presets' + searchIconCollapsedMargin={55} + searchIconExpandedMargin={10} + placeholderCollapsedMargin={45} + placeholderExpandedMargin={20} /> {this.renderPresets()}