diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-11-23 16:39:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 16:39:51 -0800 |
commit | a1dce943fc3f7075b5d2fd887cb9b2f30402f73e (patch) | |
tree | fb1a983fe04ad16eecdc1ebe5066fd15c4004c8c /modern/src | |
parent | dc46059f6bfeedca04333c2839872055db066dc6 (diff) | |
parent | 6515beb41f666c632bbb87c9bded51986105f645 (diff) | |
download | trackermap-web-a1dce943fc3f7075b5d2fd887cb9b2f30402f73e.tar.gz trackermap-web-a1dce943fc3f7075b5d2fd887cb9b2f30402f73e.tar.bz2 trackermap-web-a1dce943fc3f7075b5d2fd887cb9b2f30402f73e.zip |
Merge pull request #1195 from TheZoker/add-camper-category
Add camper device category
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/common/util/deviceCategories.js | 1 | ||||
-rw-r--r-- | modern/src/map/core/preloadImages.js | 2 | ||||
-rw-r--r-- | modern/src/resources/images/icon/camper.svg | 2 | ||||
-rw-r--r-- | modern/src/resources/l10n/en.json | 1 |
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..19e95cc5 --- /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="M3.75,2.5C2.231,2.5 1,3.731 1,5.25L1,17.25C1,18.493 2.007,19.5 3.25,19.5L4.55,19.5C4.631,19.933 4.816,20.352 5.127,20.701C5.556,21.184 6.229,21.5 7,21.5C7.771,21.5 8.444,21.184 8.873,20.701C9.184,20.352 9.369,19.933 9.45,19.5L14,19.5L14,9.5C14,8.672 14.672,8 15.5,8L19.75,8C21.269,8 22.5,6.769 22.5,5.25C22.5,3.731 21.269,2.5 19.75,2.5L3.75,2.5ZM17.75,4.5L19.75,4.5C20.165,4.5 20.5,4.836 20.5,5.25C20.5,5.665 20.165,6 19.75,6L17.75,6C17.336,6 17,5.665 17,5.25C17,4.836 17.336,4.5 17.75,4.5ZM5,8L11,8L11,13L5,13L5,8ZM16,9C15.448,9 15,9.448 15,10L15,19.5L16.05,19.5C16.131,19.933 16.316,20.352 16.627,20.701C17.056,21.184 17.729,21.5 18.5,21.5C19.271,21.5 19.944,21.184 20.373,20.701C20.689,20.346 20.876,19.92 20.955,19.479C22.1,19.374 23,18.422 23,17.25L23,13.75C23,11.127 20.874,9 18.25,9L16,9ZM7,18C7.396,18 7.598,18.121 7.752,18.295C7.906,18.468 8,18.729 8,19C8,19.271 7.906,19.532 7.752,19.705C7.598,19.879 7.396,20 7,20C6.604,20 6.402,19.879 6.248,19.705C6.094,19.532 6,19.271 6,19C6,18.729 6.094,18.468 6.248,18.295C6.402,18.121 6.604,18 7,18ZM18.5,18C18.896,18 19.098,18.121 19.252,18.295C19.406,18.468 19.5,18.729 19.5,19C19.5,19.271 19.406,19.532 19.252,19.705C19.098,19.879 18.896,20 18.5,20C18.104,20 17.902,19.879 17.748,19.705C17.594,19.532 17.5,19.271 17.5,19C17.5,18.729 17.594,18.468 17.748,18.295C17.902,18.121 18.104,18 18.5,18Z"/></svg> 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", |