fixed km markers radiuses

This commit is contained in:
Fedor Katurov 2020-01-17 18:01:33 +07:00
parent cb02338c67
commit ea8936f283
2 changed files with 11 additions and 18 deletions

View file

@ -110,7 +110,7 @@ const RouterUnconnected: FC<Props> = memo(
item.addTo(MainMap);
return () => {
item.removeFrom(MainMap);
item.removeFrom(MainMap).remove();
};
}, [dist, end, direction, distance]);

View file

@ -122,7 +122,7 @@
.leaflet-km-dist {
background: @red_secondary;
color: white;
border-radius: 4px;
border-radius: 8px;
font-size: 12px;
text-align: center;
min-width: 20px;
@ -155,10 +155,11 @@
.leaflet-km-dist {
left: auto;
right: -3px;
top: -3px;
top: -2px;
position: absolute;
z-index: -10;
padding: 2px 16px 2px 4px;
padding: 1px 15px 1px 6px;
border-radius: 10px;
&::after {
content: ' ';
@ -167,8 +168,8 @@
border-radius: 4px;
background: white;
position: absolute;
right: 5px;
top: 5px;
right: 4px;
top: 4px;
}
}
@ -186,7 +187,6 @@
}
}
.router-marker {
div {
background: @router_line;
@ -197,22 +197,15 @@
top: -5px;
position: absolute;
z-index: -10;
padding: 2px 8px 2px 8px;
border-radius: 4px;
padding: 0 6px 0 6px;
border-radius: 12px;
font-weight: bold;
}
&.right {
div {
// padding: 2px 4px 2px 16px;
// left: -3px;
right: auto;
left: 15px;
// &::after {
// left: 5px;
// right: auto;
// }
}
}
}