Trying to visualize some subsurface polyline features in 3D. Created a Scene in Pro and published to Portal/Server. Then using JSAPI 4.18 to display.
The following plots my polylines.
const my3DLinesLayer = new FeatureLayer({
url : 'my 3d URL',
elevationInfo : {
mode: 'relative-to-scene',
},
renderer : myRenderer
});
But so do:
mode : 'absolute-height'
and
mode : 'relative-to-ground'
What am I missing when it comes to the difference between "relative-to..." and "absolute..."?
In each case, my lines plot starting above ground and then continuing into subsurface. Since the line's starting point has a Z > 0, say Z = 1000, it looks like it get plotted starting 1000 units above ground. But the Z = 1000 should really be interpreted as starting at ground where ground = 1000 because these are absolute elevations.
So I can understand that 'relative-to-surface' or 'relative-to-ground' would work as described above - we're taking positive values for Z and plotting them above the ground and negative Z below - but why 'absolute-height'? Doesn't the ground elevation layer plot in relation to some approximation of sea level? So if ground is 1000 units above sea level, that's where my line-Z should be?
This is what I have in my map right now:
const map = new Map({
basemap: "satellite",
ground: "world-elevation",
fadeOnZoom: true,
force3DTransforms: true,
navigationMode: "classic"
});
Thanks for any suggestions you may have. I'm new to 3D in web mapping, so I may not be missing something obvious.
@RalucaNicola - tagging you here since I've seen some great feedback from you in other threads. 😊