diff --git a/src/index.tsx b/src/index.tsx index 10a0f87..82c2ccf 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -7,7 +7,7 @@ todo tower sticker todo route description - todo polyline editing only in manual mode (or by click) + skip polyline editing only in manual mode (or by click) todo selecting logo on crop todo network operations notify diff --git a/src/modules/Editor.ts b/src/modules/Editor.ts index 02a1165..16fab94 100644 --- a/src/modules/Editor.ts +++ b/src/modules/Editor.ts @@ -371,8 +371,6 @@ export class Editor { this.setInitialData(); this.owner = { id }; - // todo: implement - // if (this.poly.latlngs && this.poly.latlngs.length > 1) this.poly.poly.editor.enable(); this.poly.enableEditor(); this.stickers.startEditing(); }; diff --git a/src/modules/Stickers.ts b/src/modules/Stickers.ts index 6989352..907344e 100644 --- a/src/modules/Stickers.ts +++ b/src/modules/Stickers.ts @@ -81,16 +81,6 @@ export class Stickers { dumpData = (): Array => this.stickers.map(sticker => sticker.dumpData()); - // onSpiderify = (): void => { - // console.log('spider?'); - // // todo: it has markers passed as argument. Update only them. - // if (this.editor.getEditing()) { - // this.startEditing(); - // } else { - // this.stopEditing(); - // } - // }; - startEditing = (): void => { this.stickers.map(sticker => sticker.startEditing()); };