basic router

This commit is contained in:
Fedor Katurov 2018-08-16 12:29:58 +07:00
parent 0d8a507620
commit e477f50283
12 changed files with 215 additions and 15 deletions

View file

@ -2,10 +2,11 @@ import L from 'leaflet';
import { Sticker } from '$modules/Sticker';
export class Stickers {
constructor({ map }) {
constructor({ map, lockMapClicks }) {
this.map = map;
this.layer = L.layerGroup();
this.lockMapClicks = lockMapClicks;
this.stickers = [];
this.layer.addTo(this.map);
@ -23,6 +24,7 @@ export class Stickers {
latlng,
deleteSticker: this.deleteStickerByReference,
map: this.map,
lockMapClicks: this.lockMapClicks,
});
this.stickers.push(sticker);