Methods
addLayer
- addLayer<T>(map: olMap, name: string, layer: T, allowReplace?: undefined | false | true): ILayerInfo
-
Type parameters
Parameters
-
map: olMap
-
name: string
-
layer: T
-
Optional allowReplace: undefined | false | true
addScratchFeature
- addScratchFeature(feat: Feature): void
attach
- attach(map: olMap, ovMapControl: olOverviewMap, bSetLayers?: boolean): void
-
Parameters
-
map: olMap
-
ovMapControl: olOverviewMap
-
Default value bSetLayers: boolean = true
Returns void
clearScratchLayer
- clearScratchLayer(): void
detach
- detach(map: olMap, ovMapControl: olOverviewMap): void
-
Parameters
-
map: olMap
-
ovMapControl: olOverviewMap
Returns void
getExtent
- getExtent(): [number, number, number, number]
-
Returns [number, number, number, number]
getLayer
- getLayer<T>(name: string): T | undefined
-
Type parameters
Parameters
Returns T
|
undefined
getLayersForOverviewMap
- getLayersForOverviewMap(): BaseLayer[]
getMetersPerUnit
- getMetersPerUnit(): number
getProjection
- getProjection(): undefined | string
-
Returns undefined
|
string
hasLayer
- hasLayer(name: string): boolean
-
Parameters
Returns boolean
removeLayer
- removeLayer(map: olMap, name: string): olLayerBase | undefined
-
Parameters
Returns olLayerBase
|
undefined
resolutionToScale
- resolutionToScale(resolution: number): number
-
Parameters
Returns number
scaleToResolution
- scaleToResolution(scale: number): number
-
Parameters
Returns number
showActiveSelectedFeature
- showActiveSelectedFeature(mapExtent: Bounds, size: Size, uri: string): void
update
- update(showGroups: string[] | undefined, showLayers: string[] | undefined, hideGroups: string[] | undefined, hideLayers: string[] | undefined): void
-
Parameters
-
showGroups: string[] | undefined
-
showLayers: string[] | undefined
-
hideGroups: string[] | undefined
-
hideLayers: string[] | undefined
Returns void
updateSelectionColor
- updateSelectionColor(color: string): void