scaling stickers

This commit is contained in:
Fedor Katurov 2020-02-11 15:10:43 +07:00
parent 09ce310bad
commit ef5cd0cdef
13 changed files with 181 additions and 144 deletions

View file

@ -139,23 +139,9 @@ function* getRenderData() {
yield composeImages({ geometry, images, ctx });
yield composePoly({ points, ctx });
// 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],
// });
// });
yield composeArrows({ points, ctx });
yield composeDistMark({ ctx, points, distance });
yield composeStickers({ stickers: sticker_points, ctx });
yield composeStickers({ stickers: sticker_points, ctx, zoom: MainMap.getZoom() / 13 });
yield put(editorSetRenderer({ info: 'Готово', progress: 1 }));