mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
Logo: fixed it
This commit is contained in:
parent
70cb639421
commit
aaa0b5b476
4 changed files with 17 additions and 5 deletions
|
@ -3,11 +3,11 @@
|
||||||
## BUGS
|
## BUGS
|
||||||
|
|
||||||
todo fix arrows (can't reproduce now :-( )
|
todo fix arrows (can't reproduce now :-( )
|
||||||
todo adding route, applying it and adding again and deleting it makes ghost points on the map
|
done adding route, applying it and adding again and deleting it makes ghost points on the map
|
||||||
|
|
||||||
## FEATURES
|
## FEATURES
|
||||||
|
|
||||||
todo hide arrows on small zooms
|
todo make arrows and distance points
|
||||||
todo selecting logo on crop
|
todo selecting logo on crop
|
||||||
|
|
||||||
done public maps
|
done public maps
|
||||||
|
|
|
@ -13,8 +13,10 @@ import {
|
||||||
setActiveSticker,
|
setActiveSticker,
|
||||||
setAddress,
|
setAddress,
|
||||||
setChanged,
|
setChanged,
|
||||||
setDistance, setIsEmpty,
|
setDistance,
|
||||||
setLogo, setMarkersShown,
|
setIsEmpty,
|
||||||
|
setLogo,
|
||||||
|
setMarkersShown,
|
||||||
setMode,
|
setMode,
|
||||||
setPublic,
|
setPublic,
|
||||||
setRouterPoints,
|
setRouterPoints,
|
||||||
|
|
|
@ -27,7 +27,9 @@ export class Poly {
|
||||||
smoothFactor: 3,
|
smoothFactor: 3,
|
||||||
// bubblingMouseEvents: false,
|
// bubblingMouseEvents: false,
|
||||||
})
|
})
|
||||||
.on('distancechange', this.onDistanceUpdate);
|
.on('distancechange', this.onDistanceUpdate)
|
||||||
|
.on('allvertexhide', this.onVertexHide)
|
||||||
|
.on('allvertexshow', this.onVertexShow);
|
||||||
|
|
||||||
this.poly.addTo(map);
|
this.poly.addTo(map);
|
||||||
this.editor = editor;
|
this.editor = editor;
|
||||||
|
@ -47,6 +49,9 @@ export class Poly {
|
||||||
this.setDistance(parseFloat(distance.toFixed(2)));
|
this.setDistance(parseFloat(distance.toFixed(2)));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onVertexHide = (): void => this.editor.setMarkersShown(false);
|
||||||
|
onVertexShow = (): void => this.editor.setMarkersShown(true);
|
||||||
|
|
||||||
// setModeOnDrawing = (): void => {
|
// setModeOnDrawing = (): void => {
|
||||||
// if (this.editor.getMode() !== MODES.POLY) this.editor.setMode(MODES.POLY);
|
// if (this.editor.getMode() !== MODES.POLY) this.editor.setMode(MODES.POLY);
|
||||||
// };
|
// };
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
&.top {
|
&.top {
|
||||||
background-position: 100% 0;
|
background-position: 100% 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: @mobile_breakpoint) {
|
||||||
|
transform: scale(0.5);
|
||||||
|
transform-origin: 100% 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue