Constructors
Methods
getLayerIds
- getLayerIds(nodes: DefaultLayerTree[], ids?: number[]): number[]
Returns number[]
getMapScales
- getMapScales(resolutions: number[], projUnit?: Units): number[]
Parameters
- resolutions: number[]
- projUnit: Units = 'm'
Returns number[]
parseFolder
- parseFolder(
el: DefaultLayerTree,
layers: S[],
projection?: ProjectionLike,
keepClientConfig?: boolean,
): Promise<LayerGroup> Parameters
- el: DefaultLayerTree
- layers: S[]
Optional
projection: ProjectionLike- keepClientConfig: boolean = false
Returns Promise<LayerGroup>
parseImageLayer
- parseImageLayer(layer: S): ImageLayer<ImageWMS>
Returns ImageLayer<ImageWMS>
parseLayer
- parseLayer(
layer: S,
projection?: ProjectionLike,
): Promise<
| undefined
| LayerGroup
| ImageLayer<ImageWMS>
| TileLayer<TileWMS>
| TileLayer<WMTS>
| VectorLayer<VectorSource, Feature>
| TileLayer<XYZ>,
> Parameters
- layer: S
Optional
projection: ProjectionLike
Returns Promise<
| undefined
| LayerGroup
| ImageLayer<ImageWMS>
| TileLayer<TileWMS>
| TileLayer<WMTS>
| VectorLayer<VectorSource, Feature>
| TileLayer<XYZ>,
>
parseLayerTree
- parseLayerTree(
application: T,
projection?: ProjectionLike,
keepClientConfig?: boolean,
): Promise<undefined | LayerGroup> Parameters
- application: T
Optional
projection: ProjectionLike- keepClientConfig: boolean = false
Returns Promise<undefined | LayerGroup>
parseLayerTreeNodes
- parseLayerTreeNodes(
application: T,
layers: S[],
projection?: ProjectionLike,
keepClientConfig?: boolean,
): Promise<LayerGroup> Parameters
- application: T
- layers: S[]
Optional
projection: ProjectionLike- keepClientConfig: boolean = false
Returns Promise<LayerGroup>
parseMapboxStyleLayer
- parseMapboxStyleLayer(
layer: S,
projection?: ProjectionLike,
): Promise<LayerGroup> Parameters
- layer: S
Optional
projection: ProjectionLike
Returns Promise<LayerGroup>
parseMapInteractions
- parseMapInteractions(
application: T,
): Promise<Collection<Interaction> | Interaction[]> Returns Promise<Collection<Interaction> | Interaction[]>
parseMapView
- parseMapView(application: T, additionalOpts?: ViewOptions): Promise<View>
Parameters
- application: T
Optional
additionalOpts: ViewOptions
Returns Promise<View>
parseNodes
- parseNodes(
nodes: DefaultLayerTree[],
layers: S[],
projection?: ProjectionLike,
keepClientConfig?: boolean,
): Promise<BaseLayer[]> Parameters
- nodes: DefaultLayerTree[]
- layers: S[]
Optional
projection: ProjectionLike- keepClientConfig: boolean = false
Returns Promise<BaseLayer[]>
parseTileLayer
- parseTileLayer(layer: S, projection?: ProjectionLike): TileLayer<TileWMS>
Parameters
- layer: S
- projection: ProjectionLike = 'EPSG:3857'
Returns TileLayer<TileWMS>
parseWFSLayer
- parseWFSLayer(
layer: S,
projection?: ProjectionLike,
): VectorLayer<VectorSource, Feature> Parameters
- layer: S
- projection: ProjectionLike = 'EPSG:3857'
Returns VectorLayer<VectorSource, Feature>
parseWMSTimeLayer
- parseWMSTimeLayer(
layer: S,
projection?: ProjectionLike,
): Promise<TileLayer<TileWMS>> Parameters
- layer: S
- projection: ProjectionLike = 'EPSG:3857'
Returns Promise<TileLayer<TileWMS>>
parseWMTSLayer
- parseWMTSLayer(
layer: S,
projection?: ProjectionLike,
): Promise<undefined | TileLayer<WMTS>> Parameters
- layer: S
- projection: ProjectionLike = 'EPSG:3857'
Returns Promise<undefined | TileLayer<WMTS>>
parseXYZLayer
- parseXYZLayer(layer: S): TileLayer<XYZ>
Returns TileLayer<XYZ>