aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Gareis <TheZoker@users.noreply.github.com>2023-11-23 14:02:19 +0000
committerFlorian Gareis <TheZoker@users.noreply.github.com>2023-11-23 14:29:07 +0000
commit47be9a242524caf0d0f4ab4fdf0c47fa464daef8 (patch)
treea7888ed9f45fb7cd9541e8673f762a272a306612
parentdc46059f6bfeedca04333c2839872055db066dc6 (diff)
downloadtrackermap-web-47be9a242524caf0d0f4ab4fdf0c47fa464daef8.tar.gz
trackermap-web-47be9a242524caf0d0f4ab4fdf0c47fa464daef8.tar.bz2
trackermap-web-47be9a242524caf0d0f4ab4fdf0c47fa464daef8.zip
Add camper SVG icon and device category
-rw-r--r--modern/src/common/util/deviceCategories.js1
-rw-r--r--modern/src/map/core/preloadImages.js2
-rw-r--r--modern/src/resources/images/icon/camper.svg2
-rw-r--r--modern/src/resources/l10n/en.json1
4 files changed, 6 insertions, 0 deletions
diff --git a/modern/src/common/util/deviceCategories.js b/modern/src/common/util/deviceCategories.js
index f5d749aa..a991e505 100644
--- a/modern/src/common/util/deviceCategories.js
+++ b/modern/src/common/util/deviceCategories.js
@@ -5,6 +5,7 @@ export default [
'boat',
'bus',
'car',
+ 'camper',
'crane',
'helicopter',
'motorcycle',
diff --git a/modern/src/map/core/preloadImages.js b/modern/src/map/core/preloadImages.js
index 10d61a3b..19c3c35e 100644
--- a/modern/src/map/core/preloadImages.js
+++ b/modern/src/map/core/preloadImages.js
@@ -9,6 +9,7 @@ import bicycleSvg from '../../resources/images/icon/bicycle.svg';
import boatSvg from '../../resources/images/icon/boat.svg';
import busSvg from '../../resources/images/icon/bus.svg';
import carSvg from '../../resources/images/icon/car.svg';
+import camperSvg from '../../resources/images/icon/camper.svg';
import craneSvg from '../../resources/images/icon/crane.svg';
import defaultSvg from '../../resources/images/icon/default.svg';
import helicopterSvg from '../../resources/images/icon/helicopter.svg';
@@ -32,6 +33,7 @@ export const mapIcons = {
boat: boatSvg,
bus: busSvg,
car: carSvg,
+ camper: camperSvg,
crane: craneSvg,
default: defaultSvg,
helicopter: helicopterSvg,
diff --git a/modern/src/resources/images/icon/camper.svg b/modern/src/resources/images/icon/camper.svg
new file mode 100644
index 00000000..6dda9259
--- /dev/null
+++ b/modern/src/resources/images/icon/camper.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="#000000"><path d="M20.111,19.434C18.937,19.434 17.981,18.478 17.981,17.303C17.981,16.128 18.937,15.173 20.111,15.173C21.286,15.173 22.242,16.128 22.242,17.303C22.242,18.478 21.286,19.434 20.111,19.434ZM20.111,15.963C19.372,15.963 18.771,16.564 18.771,17.303C18.771,18.042 19.372,18.643 20.111,18.643C20.85,18.643 21.451,18.042 21.451,17.303C21.451,16.564 20.85,15.963 20.111,15.963ZM20.111,18.093C20.061,18.093 20.008,18.088 19.958,18.077C19.905,18.067 19.855,18.051 19.808,18.032C19.761,18.014 19.716,17.988 19.674,17.961C19.629,17.932 19.589,17.898 19.552,17.861C19.516,17.824 19.484,17.785 19.455,17.742C19.426,17.698 19.402,17.653 19.381,17.605C19.36,17.558 19.347,17.508 19.336,17.458C19.326,17.405 19.321,17.355 19.321,17.302C19.321,17.25 19.326,17.199 19.336,17.147C19.347,17.097 19.36,17.047 19.381,16.999C19.402,16.952 19.426,16.907 19.455,16.865C19.484,16.82 19.516,16.781 19.552,16.743C19.845,16.448 20.377,16.448 20.669,16.743C20.817,16.891 20.901,17.094 20.901,17.302C20.901,17.355 20.896,17.405 20.885,17.457C20.875,17.507 20.862,17.557 20.84,17.605C20.822,17.653 20.796,17.697 20.767,17.742C20.74,17.784 20.706,17.824 20.669,17.861C20.632,17.898 20.593,17.932 20.551,17.961C20.506,17.987 20.461,18.013 20.414,18.032C20.366,18.05 20.316,18.066 20.266,18.077C20.213,18.088 20.164,18.093 20.111,18.093ZM5.387,19.434C4.212,19.434 3.256,18.478 3.256,17.303C3.256,16.128 4.212,15.173 5.387,15.173C6.561,15.173 7.517,16.128 7.517,17.303C7.517,18.478 6.561,19.434 5.387,19.434ZM5.387,15.963C4.648,15.963 4.047,16.564 4.047,17.303C4.047,18.042 4.648,18.643 5.387,18.643C6.126,18.643 6.727,18.042 6.727,17.303C6.727,16.564 6.126,15.963 5.387,15.963ZM5.387,18.093C5.335,18.093 5.282,18.088 5.232,18.077C5.182,18.067 5.132,18.054 5.084,18.032C5.037,18.014 4.99,17.988 4.948,17.959C4.905,17.932 4.863,17.898 4.829,17.861C4.681,17.714 4.597,17.511 4.597,17.303C4.597,17.095 4.681,16.892 4.826,16.744C5.121,16.449 5.651,16.449 5.946,16.744C6.093,16.892 6.178,17.095 6.178,17.303C6.178,17.511 6.093,17.714 5.946,17.861C5.798,18.008 5.593,18.093 5.387,18.093ZM23.15,13.264C23.57,13.458 23.841,13.881 23.841,14.343L23.841,16.767C23.841,17.284 23.421,17.705 22.903,17.705L22.735,17.704C22.755,17.573 22.768,17.439 22.768,17.303C22.768,15.838 21.576,14.646 20.111,14.646C18.646,14.646 17.454,15.838 17.454,17.303C17.454,17.438 17.467,17.569 17.486,17.698L8.011,17.698C8.031,17.569 8.044,17.438 8.044,17.303C8.044,15.838 6.852,14.646 5.386,14.646C3.921,14.646 2.729,15.838 2.729,17.303C2.729,17.439 2.743,17.571 2.762,17.701L1.594,17.705C0.787,17.705 0.132,17.049 0.132,16.243L0.132,5.777C0.132,5.095 0.687,4.54 1.369,4.54L18.203,4.54C18.885,4.54 19.44,5.095 19.44,5.777L19.44,7.555C19.44,8.237 18.885,8.792 18.203,8.792L17.832,8.792C17.908,8.865 17.981,8.943 18.049,9.025L20.593,12.086L23.15,13.264ZM7.517,9.988L7.517,8.857C7.517,8.411 7.154,8.048 6.708,8.048L2.944,8.048C2.498,8.048 2.135,8.411 2.135,8.857L2.135,9.988C2.135,10.434 2.498,10.797 2.944,10.797L6.708,10.797C7.154,10.797 7.517,10.434 7.517,9.988ZM15.191,12.012L19.504,12.012L17.441,9.53C17.051,9.061 16.477,8.792 15.868,8.792L15.038,8.792L15.038,11.86C15.038,11.944 15.107,12.012 15.191,12.012Z"/></svg> \ No newline at end of file
diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json
index d2e9c7ca..ccbfde6a 100644
--- a/modern/src/resources/l10n/en.json
+++ b/modern/src/resources/l10n/en.json
@@ -569,6 +569,7 @@
"categoryBoat": "Boat",
"categoryBus": "Bus",
"categoryCar": "Car",
+ "categoryCamper": "Camper",
"categoryCrane": "Crane",
"categoryHelicopter": "Helicopter",
"categoryMotorcycle": "Motorcycle",