Skip to content

Commit

Permalink
Merge pull request #5862 from chadrockey/golf_paths
Browse files Browse the repository at this point in the history
Presets for golf paths and cartpaths and driving ranges
  • Loading branch information
bhousel authored Feb 7, 2019
2 parents a702281 + 90115b5 commit e045c0f
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 4 deletions.
16 changes: 14 additions & 2 deletions data/presets/categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"building/residential"
]
},
"category-golf": {
"category-golf-area": {
"icon": "maki-golf",
"geometry": "area",
"name": "Golf Features",
Expand All @@ -40,7 +40,19 @@
"golf/rough",
"golf/bunker",
"golf/tee",
"golf/water_hazard_area"
"golf/water_hazard_area",
"golf/driving_range"
]
},
"category-golf-line": {
"icon": "maki-golf",
"geometry": "line",
"name": "Golf Features",
"members": [
"golf/hole",
"golf/cartpath",
"golf/cartpath_multipurpose",
"golf/path"
]
},
"category-landuse": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"golf/rough",
"golf/bunker",
"golf/tee",
"golf/water_hazard_area"
"golf/water_hazard_area",
"golf/driving_range"
]
}
11 changes: 11 additions & 0 deletions data/presets/categories/golf-line.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"icon": "maki-golf",
"geometry": "line",
"name": "Golf Features",
"members": [
"golf/hole",
"golf/cartpath",
"golf/cartpath_multipurpose",
"golf/path"
]
}
23 changes: 23 additions & 0 deletions data/presets/presets/golf/cartpath.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"icon": "maki-golf",
"fields": [
"name",
"surface",
"width",
"structure",
"access",
"incline"
],
"geometry": [
"line"
],
"tags": {
"golf": "cartpath",
"golf_cart": "designated"
},
"reference": {
"key": "golf",
"value": "cartpath"
},
"name": "Golf Cartpath"
}
24 changes: 24 additions & 0 deletions data/presets/presets/golf/cartpath_multipurpose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"icon": "maki-golf",
"fields": [
"name",
"surface",
"width",
"structure",
"access",
"incline"
],
"geometry": [
"line"
],
"tags": {
"highway": "service",
"golf": "cartpath",
"golf_cart": "designated"
},
"reference": {
"key": "golf",
"value": "cartpath"
},
"name": "Golf Cartpath Multipurpose"
}
18 changes: 18 additions & 0 deletions data/presets/presets/golf/driving_range.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"icon": "maki-golf",
"fields": [
"name"
],
"geometry": [
"area"
],
"tags": {
"golf": "driving_range",
"landuse": "grass"
},
"reference": {
"key": "golf",
"value": "driving_range"
},
"name": "Driving Range"
}
23 changes: 23 additions & 0 deletions data/presets/presets/golf/path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"icon": "maki-golf",
"fields": [
"name",
"surface",
"width",
"structure",
"access",
"incline"
],
"geometry": [
"line"
],
"tags": {
"golf": "path",
"foot": "designated"
},
"reference": {
"key": "golf",
"value": "path"
},
"name": "Golf Walking Path"
}
4 changes: 3 additions & 1 deletion data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,11 @@
{"key": "entrance", "description": "🄿 Entrance/Exit, 🄵 Type", "object_types": ["node"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/entrance-alt1-15.svg?sanitize=true"},
{"key": "ford", "value": "yes", "description": "🄿 Ford", "object_types": ["node"]},
{"key": "natural", "value": "sand", "description": "🄿 Sand Trap, 🄿 Sand", "object_types": ["area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/golf-15.svg?sanitize=true"},
{"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": "landuse", "value": "grass", "description": "🄿 Fairway, 🄿 Rough, 🄿 Tee Box, 🄿 Driving Range, 🄿 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"},
Expand Down

0 comments on commit e045c0f

Please sign in to comment.