short cleanup

This commit is contained in:
muerwre 2019-03-28 12:09:09 +07:00
parent f88bedd600
commit ea688c363b
3 changed files with 1 additions and 13 deletions

View file

@ -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

View file

@ -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();
};

View file

@ -81,16 +81,6 @@ export class Stickers {
dumpData = (): Array<IStickerDump> => 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());
};