stickers: text editing

This commit is contained in:
muerwre 2018-12-05 16:00:37 +07:00
parent fa9bff5756
commit f183c8593d
6 changed files with 130 additions and 21 deletions

View file

@ -20,7 +20,7 @@ export class Stickers {
// this.createSticker({ latlng });
// };
createSticker = ({ latlng, sticker, angle = 2.2 }) => {
createSticker = ({ latlng, sticker, angle = 2.2, text = '' }) => {
const marker = new Sticker({
latlng,
angle,
@ -29,6 +29,7 @@ export class Stickers {
lockMapClicks: this.lockMapClicks,
sticker,
triggerOnChange: this.triggerOnChange,
text,
});
this.stickers.push(marker);