import type { ClonableMixin } from "../../core/Clonable.js"; import type { JSONSupport } from "../../core/JSONSupport.js"; export interface DynamicWorkspaceLayerProperties extends Partial> {} /** * A dynamic workspace layer references a pre-authored ArcGIS Pro layer file (`.lyrx`) stored in a registered folder. * It allows a map service to use the layer's advanced renderer and cartographically enriched symbols, including * symbols that are not supported by the map service's REST API specifications. * * Use it as the [source](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/#source) of a sublayer in a [MapImageLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/), or as the * [dynamic data source](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#dynamicDataSource) of a [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/). * * > [!WARNING] * > * > **Known Limitations** * > * > [Sublayers](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/) and [FeatureLayers](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) with a `DynamicWorkspaceLayer` source cannot be persisted to web maps, web scenes, link charts, or portal items. * * @since 5.2 * @see [ArcGIS REST API - Layer source object](https://developers.arcgis.com/rest/services-reference/enterprise/layer-source-object/#dynamic-workspace-layer) * @see [ArcGIS Server - Enabling dynamic layers](https://enterprise.arcgis.com/en/server/latest/publish-services/windows/about-dynamic-layers.htm#GUID-C302852F-9E23-44C6-A71E-09E95EAF0E49) * @example * ```js * const sublayer = new Sublayer({ * source: new DynamicWorkspaceLayer({ * workspaceId: "lyrx_folder", * layerId: "WorldCities.lyrx" * }) * }); * * const layer = new MapImageLayer({ * url: "", * sublayers: [sublayer] * }); * ``` */ export default class DynamicWorkspaceLayer extends DynamicWorkspaceLayerSuperclass { constructor(properties?: DynamicWorkspaceLayerProperties); /** A SQL where clause used to filter the features in the layer. Only features that satisfy the expression will be displayed. */ accessor definitionExpression: string | null | undefined; /** The `lyrx` file name with extension. */ accessor layerId: string; /** This value is always `workspace-layer`. */ get type(): "workspace-layer"; /** The registered workspace id. */ accessor workspaceId: string; } declare const DynamicWorkspaceLayerSuperclass: typeof JSONSupport & typeof ClonableMixin