From 66628c286f62e4b100cbecb3aafa8f9610b6bf09 Mon Sep 17 00:00:00 2001
From: wmisener <58491489+wmisener@users.noreply.github.com>
Date: Tue, 2 Jul 2024 22:35:03 -0700
Subject: [PATCH 1/3] Fire station draft icons
---
icons/poi_fire_station.svg | 4 ++++
icons/poi_fire_station_cross.svg | 4 ++++
icons/poi_fire_station_shield.svg | 4 ++++
icons/poi_fire_station_truck.svg | 6 ++++++
scripts/taginfo_template.json | 8 ++++++++
src/layer/poi.js | 10 ++++++++++
6 files changed, 36 insertions(+)
create mode 100644 icons/poi_fire_station.svg
create mode 100644 icons/poi_fire_station_cross.svg
create mode 100644 icons/poi_fire_station_shield.svg
create mode 100644 icons/poi_fire_station_truck.svg
diff --git a/icons/poi_fire_station.svg b/icons/poi_fire_station.svg
new file mode 100644
index 000000000..831ac56f4
--- /dev/null
+++ b/icons/poi_fire_station.svg
@@ -0,0 +1,4 @@
+
diff --git a/icons/poi_fire_station_cross.svg b/icons/poi_fire_station_cross.svg
new file mode 100644
index 000000000..831ac56f4
--- /dev/null
+++ b/icons/poi_fire_station_cross.svg
@@ -0,0 +1,4 @@
+
diff --git a/icons/poi_fire_station_shield.svg b/icons/poi_fire_station_shield.svg
new file mode 100644
index 000000000..e31d63c78
--- /dev/null
+++ b/icons/poi_fire_station_shield.svg
@@ -0,0 +1,4 @@
+
diff --git a/icons/poi_fire_station_truck.svg b/icons/poi_fire_station_truck.svg
new file mode 100644
index 000000000..a353239e6
--- /dev/null
+++ b/icons/poi_fire_station_truck.svg
@@ -0,0 +1,6 @@
+
diff --git a/scripts/taginfo_template.json b/scripts/taginfo_template.json
index 672adcccb..72e1f2256 100644
--- a/scripts/taginfo_template.json
+++ b/scripts/taginfo_template.json
@@ -479,6 +479,14 @@
"doc_url": "https://openmaptiles.org/schema/#poi",
"icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_police_shield.svg"
},
+ {
+ "key": "amenity",
+ "value": "fire_station",
+ "object_types": ["node", "area"],
+ "description": "Fire stations are marked by an icon representing a firefighter's badge.",
+ "doc_url": "https://openmaptiles.org/schema/#poi",
+ "icon_url": "https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/poi_fire_station.svg"
+ },
{
"key": "amenity",
"value": "townhall",
diff --git a/src/layer/poi.js b/src/layer/poi.js
index d9a5ddbcc..8fc48fc6b 100644
--- a/src/layer/poi.js
+++ b/src/layer/poi.js
@@ -83,6 +83,14 @@ var iconDefs = {
color: Color.poi.consumer,
description: "Gas station",
},
+ fire_station: {
+ classes: {
+ fire_station: ["fire_station"],
+ },
+ sprite: "poi_fire_station",
+ color: Color.poi.infrastructure,
+ description: "Fire station",
+ },
hospital: {
classes: {
hospital: ["hospital"],
@@ -342,6 +350,7 @@ export const poi = {
Color.poi.attraction,
[
"hospital",
+ "fire_station",
"parking",
"police",
"school",
@@ -376,6 +385,7 @@ export const poi = {
14,
[
"bus_stop",
+ "fire_station",
"hospital",
"library",
"museum",
From 3b58c9b24c6fa0da140cefa14d0ac581138e7b40 Mon Sep 17 00:00:00 2001
From: wmisener <58491489+wmisener@users.noreply.github.com>
Date: Sat, 6 Jul 2024 14:25:50 -0700
Subject: [PATCH 2/3] More fire icons
---
icons/poi_fire_station.svg | 5 +++--
icons/poi_fire_station_cross_no_flame.svg | 3 +++
icons/poi_fire_station_cross_no_flame_smallcircle.svg | 3 +++
icons/poi_fire_station_ring.svg | 5 +++++
4 files changed, 14 insertions(+), 2 deletions(-)
create mode 100644 icons/poi_fire_station_cross_no_flame.svg
create mode 100644 icons/poi_fire_station_cross_no_flame_smallcircle.svg
create mode 100644 icons/poi_fire_station_ring.svg
diff --git a/icons/poi_fire_station.svg b/icons/poi_fire_station.svg
index 831ac56f4..7bc7323b0 100644
--- a/icons/poi_fire_station.svg
+++ b/icons/poi_fire_station.svg
@@ -1,4 +1,5 @@
diff --git a/icons/poi_fire_station_cross_no_flame.svg b/icons/poi_fire_station_cross_no_flame.svg
new file mode 100644
index 000000000..cc8a0cdd5
--- /dev/null
+++ b/icons/poi_fire_station_cross_no_flame.svg
@@ -0,0 +1,3 @@
+
diff --git a/icons/poi_fire_station_cross_no_flame_smallcircle.svg b/icons/poi_fire_station_cross_no_flame_smallcircle.svg
new file mode 100644
index 000000000..3140af922
--- /dev/null
+++ b/icons/poi_fire_station_cross_no_flame_smallcircle.svg
@@ -0,0 +1,3 @@
+
diff --git a/icons/poi_fire_station_ring.svg b/icons/poi_fire_station_ring.svg
new file mode 100644
index 000000000..7bc7323b0
--- /dev/null
+++ b/icons/poi_fire_station_ring.svg
@@ -0,0 +1,5 @@
+
From 0e98f40d7f3dce0ac4b139bbc0055b8ab9c26ce7 Mon Sep 17 00:00:00 2001
From: wmisener <58491489+wmisener@users.noreply.github.com>
Date: Tue, 9 Jul 2024 21:53:48 -0700
Subject: [PATCH 3/3] Update icon to shield
---
icons/poi_fire_station.svg | 5 ++---
icons/poi_fire_station_cross.svg | 4 ----
icons/poi_fire_station_cross_no_flame.svg | 3 ---
icons/poi_fire_station_cross_no_flame_smallcircle.svg | 3 ---
icons/poi_fire_station_ring.svg | 5 -----
icons/poi_fire_station_shield.svg | 4 ----
icons/poi_fire_station_truck.svg | 6 ------
7 files changed, 2 insertions(+), 28 deletions(-)
delete mode 100644 icons/poi_fire_station_cross.svg
delete mode 100644 icons/poi_fire_station_cross_no_flame.svg
delete mode 100644 icons/poi_fire_station_cross_no_flame_smallcircle.svg
delete mode 100644 icons/poi_fire_station_ring.svg
delete mode 100644 icons/poi_fire_station_shield.svg
delete mode 100644 icons/poi_fire_station_truck.svg
diff --git a/icons/poi_fire_station.svg b/icons/poi_fire_station.svg
index 7bc7323b0..e31d63c78 100644
--- a/icons/poi_fire_station.svg
+++ b/icons/poi_fire_station.svg
@@ -1,5 +1,4 @@
diff --git a/icons/poi_fire_station_cross.svg b/icons/poi_fire_station_cross.svg
deleted file mode 100644
index 831ac56f4..000000000
--- a/icons/poi_fire_station_cross.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/icons/poi_fire_station_cross_no_flame.svg b/icons/poi_fire_station_cross_no_flame.svg
deleted file mode 100644
index cc8a0cdd5..000000000
--- a/icons/poi_fire_station_cross_no_flame.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/icons/poi_fire_station_cross_no_flame_smallcircle.svg b/icons/poi_fire_station_cross_no_flame_smallcircle.svg
deleted file mode 100644
index 3140af922..000000000
--- a/icons/poi_fire_station_cross_no_flame_smallcircle.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/icons/poi_fire_station_ring.svg b/icons/poi_fire_station_ring.svg
deleted file mode 100644
index 7bc7323b0..000000000
--- a/icons/poi_fire_station_ring.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/icons/poi_fire_station_shield.svg b/icons/poi_fire_station_shield.svg
deleted file mode 100644
index e31d63c78..000000000
--- a/icons/poi_fire_station_shield.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/icons/poi_fire_station_truck.svg b/icons/poi_fire_station_truck.svg
deleted file mode 100644
index a353239e6..000000000
--- a/icons/poi_fire_station_truck.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-