mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed distance on render
This commit is contained in:
parent
586e09f2b5
commit
18cbeed06e
1 changed files with 1 additions and 4 deletions
|
@ -88,6 +88,7 @@ function* getRenderData() {
|
||||||
yield put(editorSetRenderer({ info: 'Загрузка тайлов', progress: 0.1 }));
|
yield put(editorSetRenderer({ info: 'Загрузка тайлов', progress: 0.1 }));
|
||||||
|
|
||||||
const { route, stickers, provider }: ReturnType<typeof selectMap> = yield select(selectMap);
|
const { route, stickers, provider }: ReturnType<typeof selectMap> = yield select(selectMap);
|
||||||
|
const { distance }: ReturnType<typeof selectEditor> = yield select(selectEditor);
|
||||||
|
|
||||||
const canvas = <HTMLCanvasElement>document.getElementById('renderer');
|
const canvas = <HTMLCanvasElement>document.getElementById('renderer');
|
||||||
canvas.width = window.innerWidth;
|
canvas.width = window.innerWidth;
|
||||||
|
@ -97,9 +98,6 @@ function* getRenderData() {
|
||||||
const geometry = getTilePlacement();
|
const geometry = getTilePlacement();
|
||||||
const points = getPolyPlacement(route);
|
const points = getPolyPlacement(route);
|
||||||
const sticker_points = getStickersPlacement(stickers);
|
const sticker_points = getStickersPlacement(stickers);
|
||||||
// TODO: get distance:
|
|
||||||
const distance = 0;
|
|
||||||
// const distance = editor.poly.poly.distance;
|
|
||||||
|
|
||||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||||
|
|
||||||
|
@ -225,7 +223,6 @@ function* getGPXTrackSaga(): SagaIterator {
|
||||||
|
|
||||||
function* routerCancel() {
|
function* routerCancel() {
|
||||||
yield put(editorSetMode(MODES.NONE));
|
yield put(editorSetMode(MODES.NONE));
|
||||||
// TODO: clear router
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function* mapClick({ latlng }: ReturnType<typeof mapClicked>) {
|
function* mapClick({ latlng }: ReturnType<typeof mapClicked>) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue