mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
Arrows: now uses nearest marker's position and icon
This commit is contained in:
parent
60429e5643
commit
07d4ff9084
2 changed files with 17 additions and 5 deletions
|
@ -57,6 +57,8 @@ export class Poly {
|
|||
onVertexShow = (): void => this.editor.setMarkersShown(true);
|
||||
|
||||
updateArrows = event => {
|
||||
this.editor.setChanged(true);
|
||||
|
||||
const { latlngs } = event;
|
||||
this.arrowLayer.clearLayers();
|
||||
|
||||
|
@ -168,7 +170,7 @@ export class Poly {
|
|||
showCoverageOnHover: false,
|
||||
zoomToBoundsOnClick: false,
|
||||
animate: false,
|
||||
maxClusterRadius: 60,
|
||||
maxClusterRadius: 120,
|
||||
// disableClusteringAtZoom: 13,
|
||||
iconCreateFunction: arrowClusterIcon,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue