Show temaki icons in overpass markers

This commit is contained in:
Stefan Siegl 2021-04-03 21:38:02 +02:00
parent d60ab7937c
commit d2bc580b14
No known key found for this signature in database
GPG key ID: 73942AF5642F3DDA
3 changed files with 32 additions and 0 deletions

View file

@ -188,6 +188,8 @@ BR.LayersConfig = L.Class.extend({
if (icon && icon.startsWith('maki-')) {
markerSign = `<img class="icon-invert" src="dist/images/${icon.substr(5)}-11.svg" />`;
} else if (icon && icon.startsWith('temaki-')) {
markerSign = `<img class="icon-invert" src="dist/images/${icon.substr(7)}.svg" width="11" />`;
}
return Object.assign(

View file

@ -36,6 +36,7 @@
],
"dependencies": {
"@bagage/leaflet.restoreview": "1.0.1",
"@ideditor/temaki": "^5.0.0",
"@mapbox/maki": "^6.2.0",
"@mapbox/polyline": "^0.2.0",
"@mapbox/togeojson": "^0.16.0",
@ -314,6 +315,30 @@
"icons/toilet-11.svg",
"icons/water-11.svg"
]
},
"@ideditor/temaki": {
"main": [
"icons/bench.svg",
"icons/shower.svg",
"icons/bicycle_rental.svg",
"icons/bicycle_repair.svg",
"icons/boat_rental.svg",
"icons/bus.svg",
"icons/sign_and_car.svg",
"icons/car_wash.svg",
"icons/ferry.svg",
"icons/car_parked.svg",
"icons/parking_space.svg",
"icons/bottles.svg",
"icons/cleaver.svg",
"icons/coffee.svg",
"icons/camper_trailer.svg",
"icons/cabin.svg",
"icons/bunk_beds.svg",
"icons/museum.svg",
"icons/spotting_scope.svg",
"icons/cabin.svg"
]
}
}
}

View file

@ -884,6 +884,11 @@
normalize-path "^2.0.1"
through2 "^2.0.3"
"@ideditor/temaki@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@ideditor/temaki/-/temaki-5.0.0.tgz#8351b3c47de59e9b98396c2cca49bc3dc2049e0a"
integrity sha512-doBSdSEr03uGx+hpe14ELxUkCoJexjwZ4/bPyMaBJjMHXlb8lKtCr7oG7YZTZsuzcFZCYGxfCTQsgpoO42vZnQ==
"@mapbox/geojson-area@0.2.2":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@mapbox/geojson-area/-/geojson-area-0.2.2.tgz#18d7814aa36bf23fbbcc379f8e26a22927debf10"