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,
stroke: true,
opacity: 1,
weight: 9,
dashArray: [12,12],
weight: 7,
// dashArray: [12,12],
}).addTo(MainMap);
setLayer(item);

View file

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