mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed arrow angle for km marks
This commit is contained in:
parent
d8d448bcf7
commit
71f2f7fba5
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ class KmMarksLayer extends LayerGroup {
|
||||||
icon: divIcon({
|
icon: divIcon({
|
||||||
html: `
|
html: `
|
||||||
<div
|
<div
|
||||||
class="leaflet-km-dist ${allwaysPositiveAngleDeg(angle) !== angle ? 'reverse' : ''}"
|
class="leaflet-km-dist${allwaysPositiveAngleDeg(angle) !== angle ? ' reverse' : ''}"
|
||||||
|
style="transform: translate(-50%, -50%) rotate(${allwaysPositiveAngleDeg(angle)}deg);"
|
||||||
>
|
>
|
||||||
${distance}
|
${distance}
|
||||||
<svg width="48" height="48" preserveAspectRatio="xMidYMid">
|
<svg width="48" height="48" preserveAspectRatio="xMidYMid">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue