Methods
addHandler
- addHandler(eventName: string, handler: Function): void
-
Parameters
-
eventName: string
-
handler: Function
Returns void
addInteraction
- addInteraction<T>(interaction: T): T
-
Type parameters
Parameters
Returns T
addLayer
- addLayer<T>(name: string, layer: T): T
-
Type parameters
Parameters
Returns T
addOverlay
- addOverlay(overlay: olOverlay): void
cancelDigitization
- cancelDigitization(): void
digitizeCircle
- digitizeCircle(handler: DigitizerCallback<olCircle>, prompt?: undefined | string): void
-
Parameters
-
-
Optional prompt: undefined | string
Returns void
digitizeLine
- digitizeLine(handler: DigitizerCallback<olLineString>, prompt?: undefined | string): void
-
Parameters
-
-
Optional prompt: undefined | string
Returns void
digitizeLineString
- digitizeLineString(handler: DigitizerCallback<olLineString>, prompt?: undefined | string): void
-
Parameters
-
-
Optional prompt: undefined | string
Returns void
digitizePoint
- digitizePoint(handler: DigitizerCallback<olPoint>, prompt?: undefined | string): void
-
Parameters
-
-
Optional prompt: undefined | string
Returns void
digitizePolygon
- digitizePolygon(handler: DigitizerCallback<olPolygon>, prompt?: undefined | string): void
-
Parameters
-
-
Optional prompt: undefined | string
Returns void
digitizeRectangle
- digitizeRectangle(handler: DigitizerCallback<olPolygon>, prompt?: undefined | string): void
-
Parameters
-
-
Optional prompt: undefined | string
Returns void
getActiveTool
- getActiveTool(): ActiveMapTool.Zoom | ActiveMapTool.Select | ActiveMapTool.Pan | ActiveMapTool.None
-
Returns ActiveMapTool.Zoom
|
ActiveMapTool.Select
|
ActiveMapTool.Pan
|
ActiveMapTool.None
getLayer
- getLayer<T>(name: string, factory: function): T
-
Type parameters
Parameters
-
name: string
-
factory: function
Returns T
getMetersPerUnit
- getMetersPerUnit(): number
getProjection
- getProjection(): ol.ProjectionLike
-
Returns ol.ProjectionLike
getSelectionXml
- getSelectionXml(selection: FeatureSet, layerIds?: string[]): string
-
Parameters
-
-
Optional layerIds: string[]
Returns string
getSize
- getSize(): [number, number]
getViewRotation
- getViewRotation(): number
hasLayer
- hasLayer(name: string): boolean
-
Parameters
Returns boolean
isFeatureTooltipEnabled
- isFeatureTooltipEnabled(): boolean
isViewRotationEnabled
- isViewRotationEnabled(): boolean
queryMapFeatures
- queryMapFeatures(options: IQueryMapFeaturesOptions, success?: undefined | function, failure?: undefined | function): void
-
Parameters
-
-
Optional success: undefined | function
-
Optional failure: undefined | function
Returns void
removeHandler
- removeHandler(eventName: string, handler: Function): void
-
Parameters
-
eventName: string
-
handler: Function
Returns void
removeInteraction
- removeInteraction<T>(interaction: T): void
-
Type parameters
Parameters
Returns void
removeLayer
- removeLayer(name: string): olLayerBase | undefined
-
Parameters
Returns olLayerBase
|
undefined
removeOverlay
- removeOverlay(overlay: olOverlay): void
scaleToResolution
- scaleToResolution(scale: number): number
-
Parameters
Returns number
selectByGeometry
- selectByGeometry(geom: olGeometry): void
setActiveTool
- setActiveTool(tool: ActiveMapTool.Zoom | ActiveMapTool.Select | ActiveMapTool.Pan | ActiveMapTool.None): void
-
Parameters
-
tool: ActiveMapTool.Zoom | ActiveMapTool.Select | ActiveMapTool.Pan | ActiveMapTool.None
Returns void
setFeatureTooltipEnabled
- setFeatureTooltipEnabled(enabled: boolean): void
setSelectionXml
- setSelectionXml(xml: string, queryOpts?: Partial<IQueryMapFeaturesOptions>, success?: undefined | function, failure?: undefined | function): void
-
Parameters
-
xml: string
-
-
Optional success: undefined | function
-
Optional failure: undefined | function
Returns void
setViewRotation
- setViewRotation(rotation: number): void
setViewRotationEnabled
- setViewRotationEnabled(enabled: boolean): void
zoomDelta
- zoomDelta(delta: number): void
zoomToExtent
- zoomToExtent(extent: Bounds): void
zoomToView
- zoomToView(x: number, y: number, scale: number): void
-
Parameters
-
x: number
-
y: number
-
scale: number
Returns void
Describes the API for interacting with the map viewer
IMapViewer