Hello developers,
I am able to use TileLayer for my cached map service and MapImageLayer for my dynamic map service no problem for both mapView and sceneView.
But for DEM, which layer should I use for mapView and which for sceneView?
Btw, in ArcPro, the DEM is made from a geotif file and is displayed black and white for its height values.
Any tips/suggestions would be appreciated!
Solved! Go to Solution.
Hi @GIS_Enjoyer thanks for posting your question. You'll likely want to publish the DEM as an Image Service and use an ImageryLayer for both views.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html
Hi @GIS_Enjoyer thanks for posting your question. You'll likely want to publish the DEM as an Image Service and use an ImageryLayer for both views.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html
Hello @Sage_Wall . Thank you for your reply!
I have a question though: I think Image Service is used for both views, but ImageLayer is flat so it works only for 2D (and 3D if you don't need elevation). However, if you need elevation, then you would use the same Image Service url but with ElevationLayer?
Yeah that's correct @GIS_Enjoyer , same service but two different layer types. Use the ImageLayer in 2D and the ElevationLayer in the map's ground property in 3D. Sorry for the confusing answer.
let elevLyr = new ElevationLayer({
// Custom elevation service
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/MtBaldy_Elevation/ImageServer"
});
// Add elevation layer to the map's ground.
map.ground.layers.add(elevLyr);