Skip to content

Commit

Permalink
Merge pull request #807 from wmisener/wmisener/town_hall
Browse files Browse the repository at this point in the history
Add town hall icon
  • Loading branch information
ZeLonewolf authored Apr 8, 2023
2 parents 091a4d8 + 7bb36c5 commit a66770e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
5 changes: 5 additions & 0 deletions icons/poi_town_hall.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 @@ -455,6 +455,14 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_health_cross.svg"
},
{
"key": "amenity",
"value": "townhall",
"object_types": ["node", "area"],
"description": "City halls are marked by an icon representing a domed building with a rectangular flag raised above it.",
"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": "clinic",
Expand Down
11 changes: 10 additions & 1 deletion src/layer/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ var iconDefs = {
color: Color.poi.infrastructure,
description: "School",
},
townhall: {
classes: {
town_hall: ["townhall"],
},
sprite: "poi_town_hall",
color: Color.poi.infrastructure,
description: "City hall",
},
};

function iconImageDefs() {
Expand Down Expand Up @@ -144,7 +152,7 @@ export const poi = {
...getSubclasses(iconDefs.railway_stop),
],
Color.poi.transport,
["hospital", "parking", "school"],
["hospital", "parking", "school", "townhall"],
Color.poi.infrastructure,
Color.poi.infrastructure,
],
Expand All @@ -165,6 +173,7 @@ export const poi = {
"hospital",
"tram_stop",
...getSubclasses(iconDefs.school),
"townhall",
],
15,
[...getSubclasses(iconDefs.bar), ...getSubclasses(iconDefs.coffee)],
Expand Down

0 comments on commit a66770e

Please sign in to comment.