problems with Cartesian3.fromDegrees altitude on map

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

when i’m trying to use Cartesian3.fromDegrees with lat+lng+alt to display airplane on the screen i have problem with his

Description

Altitude.

i see the plane in the correct position by in space.

I’m using BillboardCollection & Billboard for that with ReactJs.

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

<Billboard

color={Color.YELLOW}

position={new Cartesian3.fromDegrees(this.state.drones[0].lng, this.state.drones[0].lat,0.0001)}

image={image}

scale={0.4}

/>

<Billboard

color={Color.ORANGE}

position={new Cartesian3.fromDegrees(this.state.drones[1].lng, this.state.drones[1].lat,0.001)}

image={image}

scale={0.4}

/>

**this is a picture of the problem: **

i just want to see the planes on ground and not in space…

thank you!

Nir

Hey Nir,

A billboard does take a height reference, see the docs here: https://cesium.com/docs/cesiumjs-ref-doc/BillboardGraphics.html?classFilter=Billbo

So if you set the height to 0, make sure to set the height reference to relative to ground, and it’ll show up on the ground as you expect:

https://cesium.com/docs/cesiumjs-ref-doc/HeightReference.html?classFilter=HeightReference#.RELATIVE_TO_GROUND

Let me know if this helps! What kind of project are you using Cesium for?

thank you Omar,
i’m using resium (for reactJS) and it’s not working for me.

when i’m trying to use Billboard to see airplane on the map by lat-long with 0’ altitude i see him in space.

there is not option to use RELATIVE_TO_GROUND in resium and i’m still looking for a solution…

maybe there is a better way to use airplane with resium without Billboards?

thank you!

Nir