From 5ceda71589f7e2425f7582754d79842404a692d6 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Mon, 27 Jan 2020 11:53:21 +0700 Subject: [PATCH] gpx tracks not printable now --- src/map/GpxPolyline/index.tsx | 4 ++-- src/redux/editor/sagas.ts | 23 ++++++++++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/map/GpxPolyline/index.tsx b/src/map/GpxPolyline/index.tsx index 72bd459..eb8d696 100644 --- a/src/map/GpxPolyline/index.tsx +++ b/src/map/GpxPolyline/index.tsx @@ -15,8 +15,8 @@ const GpxPolyline: FC = ({ latlngs, color }) => { color, stroke: true, opacity: 1, - weight: 9, - dashArray: [12,12], + weight: 7, + // dashArray: [12,12], }).addTo(MainMap); setLayer(item); diff --git a/src/redux/editor/sagas.ts b/src/redux/editor/sagas.ts index 8c8ad71..2c85766 100644 --- a/src/redux/editor/sagas.ts +++ b/src/redux/editor/sagas.ts @@ -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 });