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.

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


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:

The other idea is to add a feature to CesiumJS to automatically “spread” labels that are too close, as discussed in this thread: