Skip to content

Commit

Permalink
Merge pull request #1034 from wmisener/wmisener/bookstore
Browse files Browse the repository at this point in the history
Add Bookstores
  • Loading branch information
ZeLonewolf authored Apr 1, 2024
2 parents c378e98 + 38fc237 commit 3778eae
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 15 deletions.
28 changes: 14 additions & 14 deletions icons/shield_us_az_scenic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions scripts/taginfo_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,14 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_pow_taoist.svg"
},
{
"key": "shop",
"value": "books",
"object_types": ["node", "area"],
"description": "Bookstores are marked by an icon representing a book.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_book_upright.svg"
},
{
"key": "shop",
"value": "car",
Expand Down
10 changes: 10 additions & 0 deletions src/layer/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ var iconDefs = {
color: Color.poi.consumer,
description: "Bar or pub",
},
bookstore: {
classes: {
library: ["books"],
},
sprite: "poi_book_upright",
color: Color.poi.consumer,
description: "Bookstore",
},
bus_station: {
classes: {
bus: ["bus_station"],
Expand Down Expand Up @@ -313,6 +321,7 @@ export const poi = {
[
...getSubclasses(iconDefs.fuel),
...getSubclasses(iconDefs.bar),
...getSubclasses(iconDefs.bookstore),
...getSubclasses(iconDefs.coffee),
...getSubclasses(iconDefs.supermarket),
...getSubclasses(iconDefs.car_shop),
Expand Down Expand Up @@ -387,6 +396,7 @@ export const poi = {
15,
[
...getSubclasses(iconDefs.bar),
...getSubclasses(iconDefs.bookstore),
...getSubclasses(iconDefs.coffee),
...getSubclasses(iconDefs.car_shop),
...getSubclasses(iconDefs.car_repair),
Expand Down
2 changes: 1 addition & 1 deletion test/sample_locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}
},
{
"location": "17/40.753326/-73.982224",
"location": "17/40.753922/-73.984244",
"name": "library_z17",
"viewport": {
"width": 400,
Expand Down

0 comments on commit 3778eae

Please sign in to comment.