import type { ArcGISMapService } from "@arcgis/core/layers/mixins/ArcGISMapService.js";- Subclasses:
- MapImageLayer, TileLayer
Mixin for MapImageLayer and TileLayer.
Properties
| Property | Type | Class |
|---|---|---|
capabilities readonly | | |
| | ||
| | ||
| | ||
spatialReference readonly | | |
version readonly | |
legendEnabled
- Type
- boolean
Indicates whether the layer will be included in the legend.
- Default value
- true
spatialReference
- Type
- SpatialReference
The spatial reference of the layer as defined by the service.
version
- Type
- number
The version of ArcGIS Server in which the map service is published.
Example
// Prints the version number to the console - e.g. 10.91, 11.2, 11.3.console.log(layer.version);Type definitions
MapServiceCapabilities
exportMap
- Type
- MapServiceCapabilitiesExportMap | null | undefined
Indicates options supported by the exportMap operation. Will be null if the supportsExportMap is false.
MapServiceCapabilitiesExportMap
supportsArcadeExpressionForLabeling
- Type
- boolean
Indicates if sublayers support Arcade expressions for labeling. Only applies to MapImageLayer.
supportsCIMSymbols
- Type
- boolean
Indicates if CIMSymbol can be used in a sublayer's Sublayer.renderer.
supportsDynamicLayers
- Type
- boolean
Indicates if sublayers rendering can be modified or added using dynamic layers.
supportsSublayersChanges
- Type
- boolean
Indicates if sublayers can be added, or removed. supportsDynamicLayers must be true as well to be able to reorder sublayers.
supportsSublayerDefinitionExpression
- Type
- boolean
Indicates if sublayers definition expression can be set.
supportsSublayerOrderBy
- Type
- boolean
- Since
- ArcGIS Maps SDK for JavaScript 4.32
Indicates if sublayers can be reordered. supportsDynamicLayers must be true as well. Only applies to MapImageLayer.
MapServiceCapabilitiesExportTiles
maxExportTilesCount
- Type
- number
Specifies the maximum number of tiles that can be exported to a cache dataset or a tile package.
MapServiceCapabilitiesOperations
supportsTileMap
- Type
- boolean
-Indicates if the service exposes a tile map that describes the presence of tiles.