How to get the coordinates of a Cesium3DTileFeature

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

There are some small components in my model, such as a camera. I want to be able to add text prompts where the camera appears. So that people can see it better. If there is a way to get the location of these camera components. Then adding text prompts will save a lot of work.

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.

Remind users of the location of certain small components

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

Cesium 1.48,windows 10,Chrome


So it looks like CesiumJS does not store the position info for features once loaded. The way we’ve handled that in the past is to add position info as a batch table property, so each building here as lat/long/height, and that allows you to right click to zoom to any building:

How did you create your tileset? If you uploaded CityGML to Cesium ion you should get the position info as a feature property like that.