mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
added points to gpx track
This commit is contained in:
parent
9c46f11a94
commit
1222b8f513
2 changed files with 34 additions and 26 deletions
|
@ -560,12 +560,14 @@ function* setTitleSaga({ title }: ReturnType<typeof ActionCreators.setTitle>):Sa
|
|||
}
|
||||
|
||||
function* getGPXTrackSaga(): SagaIterator {
|
||||
const { route } = editor.dumpData();
|
||||
const { route, stickers } = editor.dumpData();
|
||||
const { title, address } = yield select(getState);
|
||||
|
||||
if (!route || route.length <= 0) return;
|
||||
|
||||
const track = getGPXString({ points: route, title: (title || address) });
|
||||
const track = getGPXString({ route, stickers, title: (title || address) });
|
||||
|
||||
console.log({ route, stickers });
|
||||
|
||||
return downloadGPXTrack({ track, title });
|
||||
}
|
||||
|
@ -601,8 +603,6 @@ export function* userSaga() {
|
|||
yield takeLatest(ACTIONS.GOT_VK_USER, gotVkUserSaga);
|
||||
yield takeLatest(ACTIONS.KEY_PRESSED, keyPressedSaga);
|
||||
|
||||
// yield takeLatest(ACTIONS.IFRAME_LOGIN_VK, iframeLoginVkSaga);
|
||||
|
||||
yield takeLatest(ACTIONS.SET_TITLE, setTitleSaga);
|
||||
|
||||
yield takeLatest([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue