Skip to content

Commit e762c84

Browse files
wip: more usable spiderfy in cluster
Co-authored-by: David Larlet <david@larlet.fr>
1 parent 01c663a commit e762c84

File tree

1 file changed

+1
-1
lines changed
  • umap/static/umap/js/modules/rendering/layers

1 file changed

+1
-1
lines changed

umap/static/umap/js/modules/rendering/layers/cluster.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const MarkerCluster = Marker.extend({
5555
const zoom = this._map.getZoom()
5656
const angle = (index * step * Math.PI) / 180
5757
const progress = index / this._layers.length
58-
const radius = maxRadius * (1 - progress) ** 1
58+
const radius = maxRadius * (1 - progress) ** 0.4
5959
const x = radius * Math.cos(angle)
6060
const y = radius * Math.sin(angle)
6161
const point = this._map.project([center.lat, center.lng], zoom)

0 commit comments

Comments
 (0)