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 ) : T
Type parameters
Parameters
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
queryMapFeatures
queryMapFeatures( options: IQueryMapFeaturesOptions , success?: undefined | function , failure?: undefined | function ) : void
Parameters
Optional success: undefined | function
Optional failure: undefined | function
Returns void
refreshMap
refreshMap( mode?: RefreshMode.LayersOnly | RefreshMode.SelectionOnly ) : void
Parameters
Default value mode: RefreshMode.LayersOnly | RefreshMode.SelectionOnly = 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
selectByGeometry
selectByGeometry( geom: Geometry ) : 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
setState
setState<K>( f: function , callback?: undefined | function ) : void
setState<K>( state: Pick < Partial < IMapViewerBaseState > , K > , callback?: undefined | function ) : void
Type parameters
Parameters
f: function
Optional callback: undefined | function
Returns void
Type parameters
Parameters
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}