Properties
refs
refs: object
Type declaration
-
[key: string]: ReactInstance
state
state: Readonly<any>
Methods
DigitizeCircle
- DigitizeCircle(handler: function): void
DigitizeLine
- DigitizeLine(handler: function): void
DigitizeLineString
- DigitizeLineString(handler: function): void
DigitizePoint
- DigitizePoint(handler: function): void
DigitizePolygon
- DigitizePolygon(handler: function): void
DigitizeRectangle
- DigitizeRectangle(handler: function): void
ExecuteMapAction
- ExecuteMapAction(code: AjaxViewerMapActionCode.PanMode | AjaxViewerMapActionCode.PanUp | AjaxViewerMapActionCode.PanDown | AjaxViewerMapActionCode.PanRight | AjaxViewerMapActionCode.PanLeft | AjaxViewerMapActionCode.ZoomMode | AjaxViewerMapActionCode.ZoomIn | AjaxViewerMapActionCode.ZoomOut | AjaxViewerMapActionCode.ZoomRect | AjaxViewerMapActionCode.ZoomSelection | AjaxViewerMapActionCode.ZoomExtents | AjaxViewerMapActionCode.PrevView | AjaxViewerMapActionCode.NextView | AjaxViewerMapActionCode.InitialView | AjaxViewerMapActionCode.SelectionMode | AjaxViewerMapActionCode.SelectRadius | AjaxViewerMapActionCode.SelectPolygon | AjaxViewerMapActionCode.ClearSelection | AjaxViewerMapActionCode.RefreshMap | AjaxViewerMapActionCode.CopyMap | AjaxViewerMapActionCode.About): void
-
Parameters
-
code: AjaxViewerMapActionCode.PanMode | AjaxViewerMapActionCode.PanUp | AjaxViewerMapActionCode.PanDown | AjaxViewerMapActionCode.PanRight | AjaxViewerMapActionCode.PanLeft | AjaxViewerMapActionCode.ZoomMode | AjaxViewerMapActionCode.ZoomIn | AjaxViewerMapActionCode.ZoomOut | AjaxViewerMapActionCode.ZoomRect | AjaxViewerMapActionCode.ZoomSelection | AjaxViewerMapActionCode.ZoomExtents | AjaxViewerMapActionCode.PrevView | AjaxViewerMapActionCode.NextView | AjaxViewerMapActionCode.InitialView | AjaxViewerMapActionCode.SelectionMode | AjaxViewerMapActionCode.SelectRadius | AjaxViewerMapActionCode.SelectPolygon | AjaxViewerMapActionCode.ClearSelection | AjaxViewerMapActionCode.RefreshMap | AjaxViewerMapActionCode.CopyMap | AjaxViewerMapActionCode.About
Returns void
GetLayers
-
Parameters
-
onlyVisible: boolean
-
onlySelectable: boolean
GetMapName
- GetMapName(): string | undefined
-
Returns string
|
undefined
GetMapUnitsType
- GetMapUnitsType(): string
GetMetersPerUnit
- GetMetersPerUnit(): number | null
GetScale
- GetScale(): number | null
GetSelectedCount
- GetSelectedCount(): number
GetSelectionXML
- GetSelectionXML(): string
GetSessionId
- GetSessionId(): string | undefined
-
Returns string
|
undefined
IsEnglishUnits
- IsEnglishUnits(): boolean
IsLatLongDisplayUnits
- IsLatLongDisplayUnits(): boolean
SetEnglishUnits
- SetEnglishUnits(usEnglish: boolean): void
SetLatLongDisplayUnits
- SetLatLongDisplayUnits(latLon: boolean): void
SetSelectionXML
- SetSelectionXML(xmlSet: string): void
Submit
- Submit(url: string, params: string[], frameTarget: string): void
-
Parameters
-
url: string
-
params: string[]
-
frameTarget: string
Returns void
ZoomToScale
- ZoomToScale(scale: number): void
ZoomToView
- ZoomToView(x: number, y: number, scale: number, refresh: boolean): void
-
Parameters
-
x: number
-
y: number
-
scale: number
-
refresh: boolean
Returns void
componentDidMount
- componentDidMount(): void
componentWillReceiveProps
deregisterForEvent
- deregisterForEvent(eventID: number, callback: Function): void
-
Parameters
-
eventID: number
-
callback: Function
Returns void
forceUpdate
- forceUpdate(callBack?: undefined | function): void
-
Parameters
-
Optional callBack: undefined | function
Returns void
getClient
- getClient(): Client | undefined
registerForEvent
- registerForEvent(eventID: number, callback: Function): void
-
Parameters
-
eventID: number
-
callback: Function
Returns void
setState
- setState<K>(f: function, callback?: undefined | function): void
- setState<K>(state: Pick<any, K>, callback?: undefined | function): void
-
Type parameters
Parameters
-
f: function
-
-
Parameters
Returns Pick<any, K>
-
Optional callback: undefined | function
Returns void
-
Type parameters
Parameters
-
state: Pick<any, K>
-
Optional callback: undefined | function
Returns void
triggerFusionEvent
- triggerFusionEvent(eventID: number, ...args: any[]): void
-
Parameters
-
eventID: number
-
Rest ...args: any[]
Returns void
Static Optional componentDidMount
- componentDidMount(): void
Static Optional componentDidUpdate
- componentDidUpdate(prevProps: Readonly<ViewerApiShimProps>, prevState: Readonly<any>, prevContext: any): void
-
Parameters
-
-
prevState: Readonly<any>
-
prevContext: any
Returns void
Static Optional componentWillMount
- componentWillMount(): void
Static Optional componentWillReceiveProps
- componentWillReceiveProps(nextProps: Readonly<ViewerApiShimProps>, nextContext: any): void
Static Optional componentWillUnmount
- componentWillUnmount(): void
Static Optional componentWillUpdate
- componentWillUpdate(nextProps: Readonly<ViewerApiShimProps>, nextState: Readonly<any>, nextContext: any): void
-
Parameters
-
-
nextState: Readonly<any>
-
nextContext: any
Returns void
Static Optional shouldComponentUpdate
- shouldComponentUpdate(nextProps: Readonly<ViewerApiShimProps>, nextState: Readonly<any>, nextContext: any): boolean
-
Parameters
-
-
nextState: Readonly<any>
-
nextContext: any
Returns boolean
Indicates if the map frame is ready
Although this not part of the "public" API, most AJAX viewer examples test for this flag anyways, so we might as well emulate it here