gpx tracks not printable now

This commit is contained in:
Fedor Katurov 2020-01-27 11:53:21 +07:00
parent f41078b769
commit 5ceda71589
2 changed files with 14 additions and 13 deletions

View file

@ -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);

View file

@ -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 });