Intersection between tiles and a line

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

Hi all,

How can we identify the interaction of a line with tiles?


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

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

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

Hey Maryam,

The closest thing I can think of is the sampleHeight function, which lets you get the height of a tile at any point. You can see an example of this here:

We’re still working on fleshing out this functionality, you can see the progress here:

So as of right now I don’t think there’s a way to get the intersection of tile with a line with the public API. Internally we do use ray intersection functions to compute this height, so you might be able to figure it out by digging in the source code but it wouldn’t be a simple solution.