mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
basic router
This commit is contained in:
parent
0d8a507620
commit
e477f50283
12 changed files with 215 additions and 15 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue