Arrows: now uses nearest marker's position and icon

This commit is contained in:
muerwre 2019-02-26 17:45:54 +07:00
parent 60429e5643
commit 07d4ff9084
2 changed files with 17 additions and 5 deletions

View file

@ -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,
});