mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed arrows
This commit is contained in:
parent
bdcd7fd814
commit
973f934614
2 changed files with 31 additions and 20 deletions
|
@ -18,8 +18,12 @@
|
|||
}
|
||||
|
||||
@keyframes vertex_spin {
|
||||
0% { transform: scale(1); }
|
||||
100% { transform: scale(1.2); }
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
}
|
||||
|
||||
.leaflet-vertex-drag-helper {
|
||||
|
@ -110,7 +114,8 @@
|
|||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
.leaflet-km-marker, .leaflet-km-marker-2 {
|
||||
.leaflet-km-marker,
|
||||
.leaflet-km-marker-2 {
|
||||
position: absolute;
|
||||
z-index: 0 !important;
|
||||
|
||||
|
@ -137,6 +142,12 @@
|
|||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
&.reverse {
|
||||
svg {
|
||||
transform: translate(-50%, 0) rotate(180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -87,12 +87,12 @@ class KmMarksLayer extends LayerGroup {
|
|||
interactive: false,
|
||||
icon: divIcon({
|
||||
html: `
|
||||
<div class="leaflet-km-dist" style="transform: translate(-50%, -50%) rotate(${allwaysPositiveAngleDeg(
|
||||
angle
|
||||
)}deg);">
|
||||
<div
|
||||
class="leaflet-km-dist ${allwaysPositiveAngleDeg(angle) !== angle ? 'reverse' : ''}"
|
||||
style="transform: translate(-50%, -50%) rotate(${allwaysPositiveAngleDeg(angle)}deg);"
|
||||
>
|
||||
${distance}
|
||||
|
||||
<svg width="48" height="48" preserveAspectRatio="xMidYMid">
|
||||
<svg width="48" height="48" preserveAspectRatio="xMidYMid" transform="rotate(0deg)">
|
||||
<image xlink:href="${arrow_image}" x="0" y="0" width="48" height="48"/>
|
||||
</svg>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue