Skip to content

Commit

Permalink
Add preset for shop=cannabis (close #6301)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed May 3, 2019
1 parent 6729664 commit cdd624b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6515,6 +6515,11 @@ en:
name: Candle Shop
# 'terms: wax'
terms: '<translate with synonyms or related terms for ''Candle Shop'', separated by commas>'
shop/cannabis:
# shop=cannabis
name: Cannabis Shop
# 'terms: 420,marijuana,pot,reefer,weed'
terms: '<translate with synonyms or related terms for ''Cannabis Shop'', separated by commas>'
shop/car:
# shop=car
name: Car Dealership
Expand Down
1 change: 1 addition & 0 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@
"shop/books": {"icon": "fas-book", "fields": ["{shop}", "internet_access"], "moreFields": ["{shop}", "internet_access/fee", "internet_access/ssid"], "geometry": ["point", "area"], "tags": {"shop": "books"}, "name": "Book Store"},
"shop/butcher": {"icon": "fas-bacon", "geometry": ["point", "area"], "terms": ["chicken", "beef", "lamb", "meat", "pork"], "tags": {"shop": "butcher"}, "name": "Butcher"},
"shop/candles": {"icon": "fas-burn", "geometry": ["point", "area"], "tags": {"shop": "candles"}, "terms": ["wax"], "name": "Candle Shop"},
"shop/cannabis": {"icon": "fas-cannabis", "geometry": ["point", "area"], "terms": ["420", "marijuana", "pot", "reefer", "weed"], "tags": {"shop": "cannabis"}, "name": "Cannabis Shop"},
"shop/car_parts": {"icon": "fas-car-battery", "geometry": ["point", "area"], "terms": ["automobile", "automotive"], "tags": {"shop": "car_parts"}, "name": "Car Parts Store"},
"shop/car_repair": {"icon": "maki-car-repair", "fields": ["{shop}", "service/vehicle"], "geometry": ["point", "area"], "terms": ["automobile", "automotive", "garage", "service"], "tags": {"shop": "car_repair"}, "name": "Car Repair Shop"},
"shop/car": {"icon": "maki-car", "fields": ["name", "brand", "{shop}", "second_hand", "service/vehicle"], "geometry": ["point", "area"], "terms": ["automobile", "automotive"], "tags": {"shop": "car"}, "name": "Car Dealership"},
Expand Down
18 changes: 18 additions & 0 deletions data/presets/presets/shop/cannabis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"icon": "fas-cannabis",
"geometry": [
"point",
"area"
],
"terms": [
"420",
"marijuana",
"pot",
"reefer",
"weed"
],
"tags": {
"shop": "cannabis"
},
"name": "Cannabis Shop"
}
1 change: 1 addition & 0 deletions data/taginfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@
{"key": "shop", "value": "books", "description": "🄿 Book Store", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-book.svg?sanitize=true"},
{"key": "shop", "value": "butcher", "description": "🄿 Butcher", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-bacon.svg?sanitize=true"},
{"key": "shop", "value": "candles", "description": "🄿 Candle Shop", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-burn.svg?sanitize=true"},
{"key": "shop", "value": "cannabis", "description": "🄿 Cannabis Shop", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-cannabis.svg?sanitize=true"},
{"key": "shop", "value": "car_parts", "description": "🄿 Car Parts Store", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/openstreetmap/iD/master/svg/fontawesome/fas-car-battery.svg?sanitize=true"},
{"key": "shop", "value": "car_repair", "description": "🄿 Car Repair Shop", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/car-repair-15.svg?sanitize=true"},
{"key": "shop", "value": "car", "description": "🄿 Car Dealership", "object_types": ["node", "area"], "icon_url": "https://raw.githubusercontent.com/mapbox/maki/master/icons/car-15.svg?sanitize=true"},
Expand Down
4 changes: 4 additions & 0 deletions dist/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8015,6 +8015,10 @@
"name": "Candle Shop",
"terms": "wax"
},
"shop/cannabis": {
"name": "Cannabis Shop",
"terms": "420,marijuana,pot,reefer,weed"
},
"shop/car_parts": {
"name": "Car Parts Store",
"terms": "automobile,automotive"
Expand Down
1 change: 1 addition & 0 deletions svg/fontawesome/fas-cannabis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cdd624b

Please sign in to comment.