diff --git a/src/styles/map.less b/src/styles/map.less index 1c8ddc5..cab4e8e 100644 --- a/src/styles/map.less +++ b/src/styles/map.less @@ -14,12 +14,16 @@ } .leaflet-touch .leaflet-bar a { - border-radius: @panel_radius !important; + border-radius: @panel_radius !important; } @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 { @@ -43,16 +47,16 @@ .vertex-icon-mixin(@left, @right) { &::after { content: ' '; - position:absolute; - top:4px; + position: absolute; + top: 4px; left: @left; right: @right; - width:8px; - height:8px; + width: 8px; + height: 8px; background: white; border-radius: 8px; - transform:scale(1); - transition:transform 150ms; + transform: scale(1); + transition: transform 150ms; } } @@ -63,8 +67,8 @@ border: none; width: 16px !important; height: 16px !important; - margin-left:-8px !important; - margin-top:-8px !important; + margin-left: -8px !important; + margin-top: -8px !important; background: transparent; position: absolute; cursor: grab; @@ -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); + } + } } } @@ -191,7 +202,7 @@ } .leaflet-control-container .leaflet-routing-container-hide { - display: none; + display: none; } .leaflet-bar { @@ -294,7 +305,7 @@ #canvas { background: #eeeeee; z-index: 0; - + > div { width: 100%; height: 100%; @@ -303,4 +314,4 @@ .leaflet-pane { user-select: none; -} \ No newline at end of file +} diff --git a/src/utils/marks.ts b/src/utils/marks.ts index db4cc53..a39504f 100644 --- a/src/utils/marks.ts +++ b/src/utils/marks.ts @@ -87,12 +87,12 @@ class KmMarksLayer extends LayerGroup { interactive: false, icon: divIcon({ html: ` -
+
${distance} - - +