Elevation can help with 3D visualizations by creating relief in your 3D scene. Elevation surfaces define height values across the extent of a map or scene. Other layers are usually draped on top of the elevation. In most cases, data for elevation comes from an elevation service. Currently we only support single tiled elevation.
Elevation tiles can also access data from LERC encoded tile packages stored locally.
A tile package is a single .tpk (or .tpkx) file containing tiles, and you can share the file as you would with any file. Compared with .tpk files, .tpkx files provide better performance on network shares and cloud store directories. The spatial reference of the elevation should match with the basemap and image tile layers. See Spatial references for more information about coordinate systems.
Click on the Elevation tab, and select the Default Elevation or select Custom Elevation to set a custom elevation source in the panel.
The Default Elevation is Terrain 3D from ArcGIS Online and its spatial reference is Web Mercator (Auxiliary Sphere).
- To use a
.tpkxfile package as an elevation source, click on ··· to select the local file package.
- When none of the two options are selected, no elevation relief will be created.
- To use a private hosted elevation layer, select the matching configuration from the Authentication drop-down list. For more information about using private content, see ArcGIS identity.
- Click on the game object that has ArcGIS Map component attached in the Hierarchy window.
- Expand the ArcGIS Map Component, then the Elevation section in the Inspector window.
- Introduce the online service URL for the elevation service or a local file package path in the Elevation field.
To use a private hosted elevation layer, select the matching configuration from the Authentication drop-down list. For more information about using private content, see ArcGIS identity.
Set elevation with
ArcGISMap and use
ArcGISImage for the tiled elevation layer.
You can find the sample code to set elevation with a layer service URL in the SampleAPIMapCreator.cs file. The sample script file is in:
Assets/Samples/ArcGIS Maps SDK for Unity/1.0.0/All Samples/Scripts/APISample