From a7955bc3f952c79488807b203497a82a3eef02b5 Mon Sep 17 00:00:00 2001 From: Chad Rockey Date: Mon, 4 Feb 2019 21:14:17 -0800 Subject: [PATCH] Presets for golf paths and cartpaths --- data/presets/categories.json | 12 +++++++++- .../categories/{golf.json => golf-area.json} | 0 data/presets/categories/golf-line.json | 10 ++++++++ data/presets/presets/golf/cartpath.json | 24 +++++++++++++++++++ data/presets/presets/golf/hole.json | 4 ++++ data/presets/presets/golf/path.json | 23 ++++++++++++++++++ data/taginfo.json | 2 ++ 7 files changed, 74 insertions(+), 1 deletion(-) rename data/presets/categories/{golf.json => golf-area.json} (100%) create mode 100644 data/presets/categories/golf-line.json create mode 100644 data/presets/presets/golf/cartpath.json create mode 100644 data/presets/presets/golf/path.json diff --git a/data/presets/categories.json b/data/presets/categories.json index c1a7c16a0..341bfdd03 100644 --- a/data/presets/categories.json +++ b/data/presets/categories.json @@ -29,7 +29,7 @@ "building/residential" ] }, - "category-golf": { + "category-golf-area": { "icon": "maki-golf", "geometry": "area", "name": "Golf Features", @@ -43,6 +43,16 @@ "golf/water_hazard_area" ] }, + "category-golf-line": { + "icon": "maki-golf", + "geometry": "line", + "name": "Golf Features", + "members": [ + "golf/hole", + "golf/cartpath", + "golf/path" + ] + }, "category-landuse": { "icon": "maki-landuse", "geometry": "area", diff --git a/data/presets/categories/golf.json b/data/presets/categories/golf-area.json similarity index 100% rename from data/presets/categories/golf.json rename to data/presets/categories/golf-area.json diff --git a/data/presets/categories/golf-line.json b/data/presets/categories/golf-line.json new file mode 100644 index 000000000..47c6774ce --- /dev/null +++ b/data/presets/categories/golf-line.json @@ -0,0 +1,10 @@ +{ + "icon": "maki-golf", + "geometry": "line", + "name": "Golf Features", + "members": [ + "golf/hole", + "golf/cartpath", + "golf/path" + ] +} diff --git a/data/presets/presets/golf/cartpath.json b/data/presets/presets/golf/cartpath.json new file mode 100644 index 000000000..edcc8220a --- /dev/null +++ b/data/presets/presets/golf/cartpath.json @@ -0,0 +1,24 @@ +{ + "icon": "maki-golf", + "fields": [ + "name", + "surface", + "width", + "structure", + "access", + "incline" + ], + "geometry": [ + "line" + ], + "tags": { + "golf": "cartpath", + "highway:": "path", + "golf_cart:": "designated" + }, + "reference": { + "key": "golf", + "value": "cartpath" + }, + "name": "Golf Cartpath" +} diff --git a/data/presets/presets/golf/hole.json b/data/presets/presets/golf/hole.json index 8a5fcd06f..af19c8c99 100644 --- a/data/presets/presets/golf/hole.json +++ b/data/presets/presets/golf/hole.json @@ -12,5 +12,9 @@ "tags": { "golf": "hole" }, + "reference": { + "key": "golf", + "value": "hole" + }, "name": "Golf Hole" } diff --git a/data/presets/presets/golf/path.json b/data/presets/presets/golf/path.json new file mode 100644 index 000000000..84bb13b86 --- /dev/null +++ b/data/presets/presets/golf/path.json @@ -0,0 +1,23 @@ +{ + "icon": "maki-golf", + "fields": [ + "name", + "surface", + "width", + "structure", + "access", + "incline" + ], + "geometry": [ + "line" + ], + "tags": { + "golf": "path", + "highway": "footway" + }, + "reference": { + "key": "golf", + "value": "path" + }, + "name": "Golf Walking Path" +} diff --git a/data/taginfo.json b/data/taginfo.json index f067418ac..5daaabf47 100644 --- a/data/taginfo.json +++ b/data/taginfo.json @@ -378,6 +378,8 @@ {"key": "landuse", "value": "grass", "description": "🄿 Fairway, 🄿 Rough, 🄿 Tee Box, 🄿 Grass", "object_types": ["area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "sport", "value": "golf", "description": "🄿 Putting Green", "object_types": ["area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "golf", "value": "hole", "description": "🄿 Golf Hole", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, + {"key": "golf", "value": "cartpath", "description": "🄿 Golf CartPath", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, + {"key": "golf", "value": "path", "description": "🄿 Golf Walking Path", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "natural", "value": "water", "description": "🄿 Lateral Water Hazard, 🄿 Water Hazard, 🄿 Water", "object_types": ["area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "golf", "value": "lateral_water_hazard", "description": "🄿 Lateral Water Hazard", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"}, {"key": "golf", "value": "water_hazard", "description": "🄿 Water Hazard", "object_types": ["way"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"},