3

In my map application built on the ArcGIS API for JavaScript there are a number of points that share a lat/long. I need a way to allow the user to see all of the points at a specific location by exploding them outward when the top point is clicked. The effect would need to be something like Google's MarkerCluster and Spiderfier.

I know this can be done in other libraries, but I can't find anything similar in the ArcGIS API for JavaScript. ArcGIS is a client requirement so I need to stay within that API.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Jan 24, 2014 at 20:11

5 Answers 5

4
answered Jan 26, 2014 at 8:40
1
  • I initially didn't think this was quite the right solution but I revisited and realized that it appears to do the trick. Thanks for the tip! Commented Jan 27, 2014 at 16:43
3

I couldn't find anything that did exactly what I wanted so I created a layer for it. Clusters points and creates flares for the clusters. Similar to the accepted answser provided by lele3p. Just posted it on github.

https://github.com/nickcam/FlareClusterLayer

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
answered Jun 15, 2015 at 5:52
1

There is an official ArcGIS API sample for this now. However, there many TODOs in the code, so you can really use it only if your data are very similar to those in the example. Lele3p's or NickCameron's solution should be better.

answered Feb 19, 2016 at 13:11
0

There is Point clustering now available in ArcGIS JavaScript 4.x API:

... the 4.14 version of the ArcGIS API for JavaScript (ArcGIS JS API) introduced point clustering in beta. Clustering is a method of merging nearby and overlapping features into a single symbol.

However, it does not look like it includes a spiderfier.

answered Jul 27, 2021 at 23:43
-1

we did it through the server-side clustering solutions and use Esri js-apis to plot the JSON outputs; pls see the app link: http://www.bdvengine.info:8080/bdvengine/BDVMap.html

answered Jun 14, 2014 at 18:17
1
  • 1
    You seem to have created two accounts, can you merge them ASAP using these instructions, please? Commented Apr 26, 2015 at 0:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.