mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
styled panels
This commit is contained in:
parent
7229a48297
commit
d17a7b6aef
24 changed files with 470 additions and 421 deletions
|
@ -9,7 +9,8 @@ export class Editor {
|
|||
constructor({
|
||||
container,
|
||||
mode,
|
||||
setMode
|
||||
setMode,
|
||||
setRouterPoints,
|
||||
}) {
|
||||
this.map = new Map({ container });
|
||||
|
||||
|
@ -17,7 +18,7 @@ export class Editor {
|
|||
|
||||
this.poly = new Poly({ map, routerMoveStart, lockMapClicks });
|
||||
this.stickers = new Stickers({ map, lockMapClicks });
|
||||
this.router = new Router({ map, lockMapClicks });
|
||||
this.router = new Router({ map, lockMapClicks, setRouterPoints });
|
||||
this.shotter = new Shotter({ map });
|
||||
|
||||
this.setMode = setMode;
|
||||
|
@ -91,7 +92,7 @@ export class Editor {
|
|||
|
||||
if (!latlngs || !latlngs.length) return;
|
||||
|
||||
this.router.startFrom(latlngs.pop());
|
||||
this.router.startFrom(latlngs[latlngs.length - 1]);
|
||||
};
|
||||
|
||||
routerMoveStart = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue