mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-24 18:46:40 +07:00
gpx tracks not printable now
This commit is contained in:
parent
f41078b769
commit
5ceda71589
2 changed files with 14 additions and 13 deletions
|
@ -15,8 +15,8 @@ const GpxPolyline: FC<IProps> = ({ latlngs, color }) => {
|
|||
color,
|
||||
stroke: true,
|
||||
opacity: 1,
|
||||
weight: 9,
|
||||
dashArray: [12,12],
|
||||
weight: 7,
|
||||
// dashArray: [12,12],
|
||||
}).addTo(MainMap);
|
||||
setLayer(item);
|
||||
|
||||
|
|
|
@ -139,18 +139,19 @@ function* getRenderData() {
|
|||
yield composeImages({ geometry, images, ctx });
|
||||
yield composePoly({ points, ctx });
|
||||
|
||||
gpx.list.forEach(item => {
|
||||
if (!gpx.enabled || !item.enabled || !item.latlngs.length) return;
|
||||
// TODO: make additional dashed lines
|
||||
// gpx.list.forEach(item => {
|
||||
// if (!gpx.enabled || !item.enabled || !item.latlngs.length) return;
|
||||
|
||||
composePoly({
|
||||
points: getPolyPlacement(item.latlngs),
|
||||
ctx,
|
||||
color: item.color,
|
||||
opacity: 0.5,
|
||||
weight: 9,
|
||||
dash: [12, 12],
|
||||
});
|
||||
});
|
||||
// composePoly({
|
||||
// points: getPolyPlacement(item.latlngs),
|
||||
// ctx,
|
||||
// color: item.color,
|
||||
// opacity: 0.5,
|
||||
// weight: 9,
|
||||
// dash: [12, 12],
|
||||
// });
|
||||
// });
|
||||
|
||||
yield composeArrows({ points, ctx });
|
||||
yield composeDistMark({ ctx, points, distance });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue