Properties
refs
refs: object
Type declaration
[ key: string ]: ReactInstance
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 , allowReplace?: undefined | true | false ) : T
Type parameters
Parameters
name: string
layer: T
Optional allowReplace: undefined | true | false
Returns T
addOverlay
addOverlay( overlay: Overlay ) : void
cancelDigitization
cancelDigitization( ) : void
componentDidMount
componentDidMount( ) : void
componentWillReceiveProps
componentWillUnmount
componentWillUnmount( ) : void
Protected createOLMap
createOLMap( options: MapOptions ) : any
digitizeCircle
digitizeCircle( handler: DigitizerCallback < Circle > , prompt?: undefined | string ) : void
Parameters
Optional prompt: undefined | string
Returns void
digitizeLine
digitizeLine( handler: DigitizerCallback < LineString > , prompt?: undefined | string ) : void
Parameters
Optional prompt: undefined | string
Returns void
digitizeLineString
digitizeLineString( handler: DigitizerCallback < LineString > , prompt?: undefined | string ) : void
Parameters
Optional prompt: undefined | string
Returns void
digitizePoint
Parameters
Optional prompt: undefined | string
Returns void
digitizePolygon
digitizePolygon( handler: DigitizerCallback < Polygon > , prompt?: undefined | string ) : void
Parameters
Optional prompt: undefined | string
Returns void
digitizeRectangle
digitizeRectangle( handler: DigitizerCallback < Polygon > , prompt?: undefined | string ) : void
Parameters
Optional prompt: undefined | string
Returns void
forceUpdate
forceUpdate( callBack?: undefined | function ) : void
Parameters
Optional callBack: undefined | function
Returns void
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
getSize
getSize( ) : [ number , number ]
hasLayer
hasLayer( name: string ) : boolean
Parameters
Returns boolean
isFeatureTooltipEnabled
isFeatureTooltipEnabled( ) : boolean
moveDown
moveDown( name: string ) : number
Parameters
Returns number
moveUp
moveUp( name: string ) : number
Parameters
Returns number
queryMapFeatures
queryMapFeatures( options: IQueryMapFeaturesOptions , success?: undefined | function , failure?: undefined | function ) : void
Parameters
Optional success: undefined | function
Optional failure: undefined | function
Returns void
refreshMap
Parameters
Default value mode: RefreshMode = RefreshMode.LayersOnly | RefreshMode.SelectionOnly
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 ) : LayerBase | undefined
Parameters
Returns LayerBase
|
undefined
removeOverlay
removeOverlay( overlay: Overlay ) : void
renderContextMenu
renderContextMenu( ) : Element
resolutionToScale
resolutionToScale( resolution: number ) : number
Parameters
Returns number
scaleToResolution
scaleToResolution( scale: number ) : number
Parameters
Returns number
screenToMapUnits
screenToMapUnits( x: number , y: number ) : [ number , number ]
Parameters
Returns [ number , number ]
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
setState
setState<K>( state: function | S | object , callback?: undefined | function ) : void
Type parameters
K: keyof Partial<IMapViewerBaseState>
Parameters
state: function | S | object
Optional callback: undefined | function
Returns 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
Static Optional componentDidCatch
componentDidCatch( error: Error , errorInfo: ErrorInfo ) : void
Parameters
error: Error
errorInfo: ErrorInfo
Returns void
Static Optional componentDidMount
componentDidMount( ) : void
Static Optional componentDidUpdate
Static Optional componentWillMount
componentWillMount( ) : void
Static Optional componentWillReceiveProps
Static Optional componentWillUnmount
componentWillUnmount( ) : void
Static Optional componentWillUpdate
Static Optional shouldComponentUpdate
Parameters
Returns boolean
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
The base map viewer component
MapViewerBase
{React.Component}