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
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
dismissToast
- dismissToast(key: string): void
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
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
removeOverlay
- removeOverlay(overlay: olOverlay): void
scaleToResolution
- scaleToResolution(scale: number): number
-
Parameters
Returns number
screenToMapUnits
- screenToMapUnits(x: number, y: number): [number, number]
-
Parameters
Returns [number, number]
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
toastError
- toastError(iconName: string, message: string | Element): string | undefined
-
Parameters
-
iconName: string
-
message: string | Element
Returns string
|
undefined
toastPrimary
- toastPrimary(iconName: string, message: string | Element): string | undefined
-
Parameters
-
iconName: string
-
message: string | Element
Returns string
|
undefined
toastSuccess
- toastSuccess(iconName: string, message: string | Element): string | undefined
-
Parameters
-
iconName: string
-
message: string | Element
Returns string
|
undefined
toastWarning
- toastWarning(iconName: string, message: string | Element): string | undefined
-
Parameters
-
iconName: string
-
message: string | Element
Returns string
|
undefined
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