mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +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,
|
color,
|
||||||
stroke: true,
|
stroke: true,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
weight: 9,
|
weight: 7,
|
||||||
dashArray: [12,12],
|
// dashArray: [12,12],
|
||||||
}).addTo(MainMap);
|
}).addTo(MainMap);
|
||||||
setLayer(item);
|
setLayer(item);
|
||||||
|
|
||||||
|
|
|
@ -139,18 +139,19 @@ function* getRenderData() {
|
||||||
yield composeImages({ geometry, images, ctx });
|
yield composeImages({ geometry, images, ctx });
|
||||||
yield composePoly({ points, ctx });
|
yield composePoly({ points, ctx });
|
||||||
|
|
||||||
gpx.list.forEach(item => {
|
// TODO: make additional dashed lines
|
||||||
if (!gpx.enabled || !item.enabled || !item.latlngs.length) return;
|
// gpx.list.forEach(item => {
|
||||||
|
// if (!gpx.enabled || !item.enabled || !item.latlngs.length) return;
|
||||||
|
|
||||||
composePoly({
|
// composePoly({
|
||||||
points: getPolyPlacement(item.latlngs),
|
// points: getPolyPlacement(item.latlngs),
|
||||||
ctx,
|
// ctx,
|
||||||
color: item.color,
|
// color: item.color,
|
||||||
opacity: 0.5,
|
// opacity: 0.5,
|
||||||
weight: 9,
|
// weight: 9,
|
||||||
dash: [12, 12],
|
// dash: [12, 12],
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
yield composeArrows({ points, ctx });
|
yield composeArrows({ points, ctx });
|
||||||
yield composeDistMark({ ctx, points, distance });
|
yield composeDistMark({ ctx, points, distance });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue