Is there a way that I can display the grid that is being used for the clustering so that I can determine what level I should set the CellSize at? I’ve come up with a way to show labels for my vehicles where they will stack on top of each other, but it isn’t reliable because it keeps pulling in vehicles from too far away.
For example:
231 should show on the main freeway on the left side. When I zoom in once it does this:
The actual location is nowhere near where the clustering is being done. 230 is the same way. It’s a good deal north of the cluster location. I’ve changed the CellSize several times from 150 down to 10, and it doesn’t seem to make any difference. Any help would be appreciated.
Showing grid being used to cluster
Hi Clay,
You meant when you zoomout, the 231 is clustered but you don’t think it should be clustered, because it’s so far to 230 and you set the cell size to 10.
I read the code for ClusterPointStyle, it looks the cell size is in pixel, so the 10 should be screen length, have you tried to use 1 for test? And if possible, please upload the simple sample contains your test data, that will be very helpful for make sure where is the problem.
Regards,
Don
I found the problem while putting together the sample. There was an issue in the custom ClusterPointStyle which was causing all points to be clustered int he same area. My fault completely. Thanks for your help.
Hi Clay,
Really thanks for your feedback. Please feel free to info us if you have more queries.
Thanks,
Howard