PruneCluster icon indicating copy to clipboard operation
PruneCluster copied to clipboard

Jitter between markers?

Open tenznhok opened this issue 6 years ago • 1 comments

I am wondering how can I change the jitter / space between marker? Or how can I make the un-clustered markers leg longer because my markers are kind of big and it is still overlapping on each other after un-clustering.

tenznhok avatar Feb 27 '18 19:02 tenznhok

You may want to look at this:

var PruneClusterLeafletSpiderfier = (L.Layer ? L.Layer : L.Class).extend({ _2PI: Math.PI * 2, _circleFootSeparation: 25, _circleStartAngle: Math.PI / 6, _spiralFootSeparation: 28, _spiralLengthStart: 11, _spiralLengthFactor: 5, _spiralCountTrigger: 8, spiderfyDistanceMultiplier: 1, initialize: function (cluster) { this._cluster = cluster; this._currentMarkers = []; this._multiLines = !!L.multiPolyline; this._lines = this._multiLines ? L.multiPolyline([], { weight: 1.5, color: '#222' }) : L.polyline([], { weight: 1.5, color: '#222' }); },

Change it to 2 or 3 and you will see the different.

TheRMaverick avatar Feb 27 '18 23:02 TheRMaverick