KML Points spacing

1. A concise explanation of the problem you’re experiencing.

Hello, if you look at the attached image, you can see how the close points of my KML overlap each other.

Is there any way to automatically space them, based on the zoom? Thank you in advance.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Clustering.html

I’m using this code.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

The points have to be clear and spaced away from each other, not overlapped.

4. The Cesium version you’re using, your operating system and browser.

CesiumJS 1.60

Windows 7

Mozilla Firefox 68.0.2

1LmJ35O.png

You might be able to modify the label entities after creation to set some kind of pixel offset which would help here. You can see this in the “Offset label by distance” example here:

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=Labels.html

The other idea is to add a feature to CesiumJS to automatically “spread” labels that are too close, as discussed in this thread: https://groups.google.com/d/msg/cesium-dev/O0T4S_P80dI/xu8nJjDbBQAJ