Skip to content

Commit

Permalink
Merge branch 'main' into zlw-svg-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley authored Mar 31, 2024
2 parents a8dfdd0 + 44b252e commit 21dad61
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions icons/poi_envelope.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 @@ -487,6 +487,14 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_town_hall.svg"
},
{
"key": "amenity",
"value": "post_office",
"object_types": ["node", "area"],
"description": "Post offices are marked by an icon representing an envelope.",
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_envelope.svg"
},
{
"key": "tourism",
"value": "guest_house",
Expand Down
10 changes: 10 additions & 0 deletions src/layer/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ var iconDefs = {
color: Color.poi.infrastructure,
description: "Police station",
},
post_office: {
classes: {
post: ["post_office"],
},
sprite: "poi_envelope",
color: Color.poi.infrastructure,
description: "Post office",
},
pow_buddhist: {
classes: {
place_of_worship: ["buddhist"],
Expand Down Expand Up @@ -331,6 +339,7 @@ export const poi = {
"college",
"library",
"townhall",
...getSubclasses(iconDefs.post_office),
...getSubclasses(iconDefs.pow_christian),
...getSubclasses(iconDefs.pow_buddhist),
...getSubclasses(iconDefs.pow_hindu),
Expand Down Expand Up @@ -361,6 +370,7 @@ export const poi = {
"museum",
"police",
...getSubclasses(iconDefs.fuel),
...getSubclasses(iconDefs.post_office),
...getSubclasses(iconDefs.pow_buddhist),
...getSubclasses(iconDefs.pow_christian),
...getSubclasses(iconDefs.pow_hindu),
Expand Down

0 comments on commit 21dad61

Please sign in to comment.