is_empty flag

This commit is contained in:
muerwre 2019-02-18 15:44:06 +07:00
parent a180e00ffb
commit 9b6ed74300
8 changed files with 43 additions and 19 deletions

View file

@ -25,9 +25,12 @@ export class Stickers {
triggerOnChange: this.triggerOnChange,
text,
});
this.stickers.push(marker);
marker.marker.addTo(this.map);
this.triggerOnChange();
// marker.marker.enableEdit();
};
@ -38,6 +41,8 @@ export class Stickers {
this.map.removeLayer(ref.marker);
this.stickers.splice(index, 1);
this.triggerOnChange();
};
clearAll = () => {