Esri / cluster-layer-js

One example of how to cluster many point features
http://esri.github.io/cluster-layer-js/
Apache License 2.0
62 stars 50 forks source link

Clusters do not always wrap around beyond 180 E/W #16

Closed jwasilgeo closed 8 years ago

jwasilgeo commented 9 years ago

Has anyone else noticed that getting clusters and individual points to draw beyond +/-180 lng is not consistent? When zoomed out to the world and panning E/W, I occasionally notice "flashing" visibility of where they should be, but more often they do not show up. Both the repo's demo and my own experiments in wkid 102100 are experiencing this.

I started playing around within the _inExtent method with normalizing the map's extent and I see that in fact the valid array is getting more cached clusters pushed to it than before; however, I'm still trying to learn my way around from the map's extent-change to this layer's clusters-shown emit to see what else may be causing this. Has anyone already looked into this? If not, I'd be glad to dive in further.

jwasilgeo commented 9 years ago

Hmm I think I might have something. PR on the way soon...