Codepen Example: https://codepen.io/croiden/pen/NPxeWZo
When using two feature layers in a SceneView with elevationInfo.mode: "relative-to-ground" and different elevation offsets, we are experiencing z-fighting issues where the point layer flickers or becomes hidden when the polyline geometry overlaps the point locations. This occurs despite the polyline layer having a higher elevation offset (+50m) than the point layer (0m offset).
Expected Behavior
The polyline layer, which has an elevation offset of 50 meters above ground, should consistently render above the point layer (at ground level) without any flickering or occlusion, even when:
- The geometries overlap in XY coordinates
- The user zooms in/out
- The user rotates the camera
- The camera tilt changes
Actual Behavior
- Point features are hidden/occluded when polylines pass over them
- Visible flickering of point features occurs during camera movements (zoom, rotate, pan)
- The rendering order appears inconsistent despite clear elevation separation