hi, i’m using Cesium with Resium react wrapper.
i’ve created a map with 3D tiles and a selected poligon and point. but sometimes, the point is under the tileset layer because my entity is linked on the View and not 3D Layer
my viewer code :
<Viewer
ref={cesiumViewer}
full
animation={false}
timeline={false}
homeButton={false}
baseLayerPicker={false}
sceneModePicker={false}
onClick={handleMapClick}
geocoder={false}
style={{
width: '100%',
height: '100vh',
}}
infoBox={false}
useBrowserRecommendedResolution={true}
>
<ResiumFlyTo clicked3dPoint={center} />
<Cesium3DTileset url={tilesetUrl} />
<SelectedPlotEntity />
<ClickedPoint center={center} />
</Viewer>
my entity code :
<Entity
position={getCartesian3FromDegrees(parcelle.lng, parcelle.lat, 200)}
// pin image display
billboard={{
image: entityPin,
show: true,
eyeOffset: new Cartesian3(0.0, 0.0, 0.0),
horizontalOrigin: HorizontalOrigin.CENTER,
verticalOrigin: VerticalOrigin.BOTTOM,
alignedAxis: Cartesian3.ZERO,
width: 30,
height: 46,
}}
// plot id display
label={{
text: `${parcelle?.parcelleId?.substring(5) ?? ''}`,
font: '14pt Lato',
style: LabelStyle.FILL_AND_OUTLINE,
outlineWidth: 2,
verticalOrigin: VerticalOrigin.TOP,
pixelOffset: new Cartesian2(0, -80),
}}
>
{/* plot polygon display */}
<SelectedPlotPolygon />
{/* line ground to pin */}
<PolylineGraphics
material={Color.WHITE.withAlpha(0.5)}
positions={[
getCartesian3FromDegrees(parcelle?.lng, parcelle?.lat, 0),
getCartesian3FromDegrees(parcelle?.lng, parcelle?.lat, 200),
]}
/>
</Entity>
the good display on screen is like this, we can see the point (red marker)
but on this second city the point markers are between layers but polygon is displayed on the good layer
the first image is Bayonne - France and the second is Lyon - France
i think i must link points on scene or 3D tileset but i don’t know how
any ideas?
thanks