SINTEF-9012 / PruneCluster

Fast and realtime marker clustering for Leaflet
MIT License
552 stars 131 forks source link

Jitter between markers? #166

Open tenznhok opened 6 years ago

tenznhok commented 6 years ago

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.

TheRMaverick commented 6 years ago

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.