mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
Logo: fixed it
This commit is contained in:
parent
70cb639421
commit
aaa0b5b476
4 changed files with 17 additions and 5 deletions
|
@ -13,8 +13,10 @@ import {
|
|||
setActiveSticker,
|
||||
setAddress,
|
||||
setChanged,
|
||||
setDistance, setIsEmpty,
|
||||
setLogo, setMarkersShown,
|
||||
setDistance,
|
||||
setIsEmpty,
|
||||
setLogo,
|
||||
setMarkersShown,
|
||||
setMode,
|
||||
setPublic,
|
||||
setRouterPoints,
|
||||
|
|
|
@ -27,7 +27,9 @@ export class Poly {
|
|||
smoothFactor: 3,
|
||||
// bubblingMouseEvents: false,
|
||||
})
|
||||
.on('distancechange', this.onDistanceUpdate);
|
||||
.on('distancechange', this.onDistanceUpdate)
|
||||
.on('allvertexhide', this.onVertexHide)
|
||||
.on('allvertexshow', this.onVertexShow);
|
||||
|
||||
this.poly.addTo(map);
|
||||
this.editor = editor;
|
||||
|
@ -47,6 +49,9 @@ export class Poly {
|
|||
this.setDistance(parseFloat(distance.toFixed(2)));
|
||||
};
|
||||
|
||||
onVertexHide = (): void => this.editor.setMarkersShown(false);
|
||||
onVertexShow = (): void => this.editor.setMarkersShown(true);
|
||||
|
||||
// setModeOnDrawing = (): void => {
|
||||
// if (this.editor.getMode() !== MODES.POLY) this.editor.setMode(MODES.POLY);
|
||||
// };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue