A layer for displaying raster data. This layer only applies to offline data.

Referenced by: baseMapLayer, operationalLayers

Properties

PropertyDetails
copyrightAttribution to the Raster Data Layer provider. It is displayed in the attribution on the scene. Input required by the user when the layer is added to the scene.
idA unique identifying string for the layer.
layerTypeString indicating the layer type.
Valid value of this property RasterDataLayer
listModeTo show or hide the sublayer in the layer list.
Valid values:
  • hide
  • show
maxScaleA number representing the maximum scale at which the layer will be visible. The number is the scale’s denominator.
minScaleA number representing the minimum scale at which the layer will be visible. The number is the scale’s denominator.
opacityThe degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
pathFor offline data, a path to a raster data file. A URI format is used, starting with file: followed by a file system path. A relative path must be from the file which defines the layer. For example file:../commondata/raster_data/beijing.tif.
titleA user-friendly string title for the layer that can be used in a table of contents.
visibilityBoolean property determining whether the layer is initially visible in the scene.

Raster Data Layer Example

{
"id": "0ed3520523734394b67a760e9f90c5dc",
"layerType": "RasterDataLayer",
"title": "Beijing",
"opacity": 1,
"visibility": true,
"path": "file:../commondata/raster_data/beijing.tif"
}