Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jitter between markers? #166

Open
tenznhok opened this issue Feb 27, 2018 · 1 comment
Open

Jitter between markers? #166

tenznhok opened this issue Feb 27, 2018 · 1 comment

Comments

@tenznhok
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants