From 6c91bc56d543802fb4183ae863c1a62737b3e377 Mon Sep 17 00:00:00 2001 From: wmisener <58491489+wmisener@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:06:29 -0800 Subject: [PATCH] Bookstore taginfo, poi, sample location --- icons/shield_us_az_scenic.svg | 28 ++++++++++++++-------------- scripts/taginfo_template.json | 8 ++++++++ src/layer/poi.js | 10 ++++++++++ test/sample_locations.json | 2 +- 4 files changed, 33 insertions(+), 15 deletions(-) diff --git a/icons/shield_us_az_scenic.svg b/icons/shield_us_az_scenic.svg index bff968fbd..d027e8acd 100644 --- a/icons/shield_us_az_scenic.svg +++ b/icons/shield_us_az_scenic.svg @@ -1,16 +1,16 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/scripts/taginfo_template.json b/scripts/taginfo_template.json index 32399044d..bea48d109 100644 --- a/scripts/taginfo_template.json +++ b/scripts/taginfo_template.json @@ -679,6 +679,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", diff --git a/src/layer/poi.js b/src/layer/poi.js index cd9c3d1ed..f13ef15ff 100644 --- a/src/layer/poi.js +++ b/src/layer/poi.js @@ -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"], @@ -305,6 +313,7 @@ export const poi = { [ ...getSubclasses(iconDefs.fuel), ...getSubclasses(iconDefs.bar), + ...getSubclasses(iconDefs.bookstore), ...getSubclasses(iconDefs.coffee), ...getSubclasses(iconDefs.supermarket), ...getSubclasses(iconDefs.car_shop), @@ -377,6 +386,7 @@ export const poi = { 15, [ ...getSubclasses(iconDefs.bar), + ...getSubclasses(iconDefs.bookstore), ...getSubclasses(iconDefs.coffee), ...getSubclasses(iconDefs.car_shop), ...getSubclasses(iconDefs.car_repair), diff --git a/test/sample_locations.json b/test/sample_locations.json index 8a150106d..dd5ba8dfe 100644 --- a/test/sample_locations.json +++ b/test/sample_locations.json @@ -49,7 +49,7 @@ } }, { - "location": "17/40.753326/-73.982224", + "location": "17/40.753922/-73.984244", "name": "library_z17", "viewport": { "width": 400,