Search
Preparing search index...
The search index is not available
mapguide-react-layout
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"containers/map-viewer"
MapViewerContainer
Class MapViewerContainer
Hierarchy
Component
<
MapViewerContainerProps
,
any
>
MapViewerContainer
Implements
IMapViewer
Index
Constructors
constructor
Properties
context
props
refs
state
Methods
add
Handler
add
Interaction
add
Layer
add
Overlay
cancel
Digitization
clear
Selection
component
Did
Mount
component
Will
Receive
Props
digitize
Circle
digitize
Line
digitize
Line
String
digitize
Point
digitize
Polygon
digitize
Rectangle
force
Update
get
Active
Tool
get
Current
Extent
get
Current
View
get
Layer
get
Meters
Per
Unit
getOLFactory
get
Projection
get
Resolution
get
Selection
get
Selection
Xml
get
Size
get
View
For
Extent
has
Layer
initial
View
is
Digitizing
is
Feature
Tooltip
Enabled
query
Map
Features
refresh
Map
remove
Handler
remove
Interaction
remove
Layer
remove
Overlay
render
scale
ToResolution
select
ByGeometry
set
Active
Tool
set
Feature
Tooltip
Enabled
set
Selection
Xml
set
State
zoom
Delta
zoom
ToExtent
zoom
ToView
component
Did
Mount
component
Did
Update
component
Will
Mount
component
Will
Receive
Props
component
Will
Unmount
component
Will
Update
should
Component
Update
Object literals
context
Types
Constructors
constructor
new
Map
Viewer
Container
(
props
:
MapViewerContainerProps
)
:
MapViewerContainer
Parameters
props:
MapViewerContainerProps
Returns
MapViewerContainer
Properties
context
context
:
any
props
props
:
Readonly
<
object
>
&
Readonly
<
MapViewerContainerProps
>
refs
refs
:
object
Type declaration
[
key:
string
]:
ReactInstance
state
state
:
Readonly
<
any
>
Methods
add
Handler
add
Handler
(
eventName
:
string
, handler
:
Function
)
:
void
Parameters
eventName:
string
handler:
Function
Returns
void
add
Interaction
add
Interaction<T>
(
interaction
:
T
)
:
T
Type parameters
T
:
Interaction
Parameters
interaction:
T
Returns
T
add
Layer
add
Layer<T>
(
name
:
string
, layer
:
T
)
:
T
Type parameters
T
:
Base
Parameters
name:
string
layer:
T
Returns
T
add
Overlay
add
Overlay
(
overlay
:
Overlay
)
:
void
Parameters
overlay:
Overlay
Returns
void
cancel
Digitization
cancel
Digitization
(
)
:
void
Returns
void
clear
Selection
clear
Selection
(
)
:
void
Returns
void
component
Did
Mount
component
Did
Mount
(
)
:
void
Returns
void
component
Will
Receive
Props
component
Will
Receive
Props
(
nextProps
:
MapViewerContainerProps
)
:
void
Parameters
nextProps:
MapViewerContainerProps
Returns
void
digitize
Circle
digitize
Circle
(
handler
:
DigitizerCallback
<
Circle
>
, prompt
?:
undefined
|
string
)
:
void
Parameters
handler:
DigitizerCallback
<
Circle
>
Optional
prompt:
undefined
|
string
Returns
void
digitize
Line
digitize
Line
(
handler
:
DigitizerCallback
<
LineString
>
, prompt
?:
undefined
|
string
)
:
void
Parameters
handler:
DigitizerCallback
<
LineString
>
Optional
prompt:
undefined
|
string
Returns
void
digitize
Line
String
digitize
Line
String
(
handler
:
DigitizerCallback
<
LineString
>
, prompt
?:
undefined
|
string
)
:
void
Parameters
handler:
DigitizerCallback
<
LineString
>
Optional
prompt:
undefined
|
string
Returns
void
digitize
Point
digitize
Point
(
handler
:
DigitizerCallback
<
Point
>
, prompt
?:
undefined
|
string
)
:
void
Parameters
handler:
DigitizerCallback
<
Point
>
Optional
prompt:
undefined
|
string
Returns
void
digitize
Polygon
digitize
Polygon
(
handler
:
DigitizerCallback
<
Polygon
>
, prompt
?:
undefined
|
string
)
:
void
Parameters
handler:
DigitizerCallback
<
Polygon
>
Optional
prompt:
undefined
|
string
Returns
void
digitize
Rectangle
digitize
Rectangle
(
handler
:
DigitizerCallback
<
Polygon
>
, prompt
?:
undefined
|
string
)
:
void
Parameters
handler:
DigitizerCallback
<
Polygon
>
Optional
prompt:
undefined
|
string
Returns
void
force
Update
force
Update
(
callBack
?:
undefined
|
function
)
:
void
Parameters
Optional
callBack:
undefined
|
function
Returns
void
get
Active
Tool
get
Active
Tool
(
)
:
ActiveMapTool.Zoom
|
ActiveMapTool.Select
|
ActiveMapTool.Pan
|
ActiveMapTool.None
Returns
ActiveMapTool.Zoom
|
ActiveMapTool.Select
|
ActiveMapTool.Pan
|
ActiveMapTool.None
get
Current
Extent
get
Current
Extent
(
)
:
Bounds
Returns
Bounds
get
Current
View
get
Current
View
(
)
:
IMapView
Returns
IMapView
get
Layer
get
Layer<T>
(
name
:
string
, factory
:
function
)
:
T
Type parameters
T
:
Base
Parameters
name:
string
factory:
function
(
)
:
T
Returns
T
Returns
T
get
Meters
Per
Unit
get
Meters
Per
Unit
(
)
:
number
Returns
number
getOLFactory
getOLFactory
(
)
:
IOLFactory
Returns
IOLFactory
get
Projection
get
Projection
(
)
:
ol.ProjectionLike
Returns
ol.ProjectionLike
get
Resolution
get
Resolution
(
)
:
number
Returns
number
get
Selection
get
Selection
(
)
:
QueryMapFeaturesResponse
|
null
Returns
QueryMapFeaturesResponse
|
null
get
Selection
Xml
get
Selection
Xml
(
selection
:
FeatureSet
, layerIds
?:
string
[]
)
:
string
Parameters
selection:
FeatureSet
Optional
layerIds:
string
[]
Returns
string
get
Size
get
Size
(
)
:
[
number
,
number
]
Returns
[
number
,
number
]
get
View
For
Extent
get
View
For
Extent
(
extent
:
Bounds
)
:
IMapView
Parameters
extent:
Bounds
Returns
IMapView
has
Layer
has
Layer
(
name
:
string
)
:
boolean
Parameters
name:
string
Returns
boolean
initial
View
initial
View
(
)
:
void
Returns
void
is
Digitizing
is
Digitizing
(
)
:
boolean
Returns
boolean
is
Feature
Tooltip
Enabled
is
Feature
Tooltip
Enabled
(
)
:
boolean
Returns
boolean
query
Map
Features
query
Map
Features
(
options
:
IQueryMapFeaturesOptions
, success
?:
undefined
|
function
, failure
?:
undefined
|
function
)
:
void
Parameters
options:
IQueryMapFeaturesOptions
Optional
success:
undefined
|
function
Optional
failure:
undefined
|
function
Returns
void
refresh
Map
refresh
Map
(
mode
?:
RefreshMode
)
:
void
Parameters
Optional
mode:
RefreshMode
Returns
void
remove
Handler
remove
Handler
(
eventName
:
string
, handler
:
Function
)
:
void
Parameters
eventName:
string
handler:
Function
Returns
void
remove
Interaction
remove
Interaction<T>
(
interaction
:
T
)
:
void
Type parameters
T
:
Interaction
Parameters
interaction:
T
Returns
void
remove
Layer
remove
Layer
(
name
:
string
)
:
Base
|
undefined
Parameters
name:
string
Returns
Base
|
undefined
remove
Overlay
remove
Overlay
(
overlay
:
Overlay
)
:
void
Parameters
overlay:
Overlay
Returns
void
render
render
(
)
:
Element
Returns
Element
scale
ToResolution
scale
ToResolution
(
scale
:
number
)
:
number
Parameters
scale:
number
Returns
number
select
ByGeometry
select
ByGeometry
(
geom
:
Geometry
)
:
void
Parameters
geom:
Geometry
Returns
void
set
Active
Tool
set
Active
Tool
(
tool
:
ActiveMapTool.Zoom
|
ActiveMapTool.Select
|
ActiveMapTool.Pan
|
ActiveMapTool.None
)
:
void
Parameters
tool:
ActiveMapTool.Zoom
|
ActiveMapTool.Select
|
ActiveMapTool.Pan
|
ActiveMapTool.None
Returns
void
set
Feature
Tooltip
Enabled
set
Feature
Tooltip
Enabled
(
enabled
:
boolean
)
:
void
Parameters
enabled:
boolean
Returns
void
set
Selection
Xml
set
Selection
Xml
(
xml
:
string
, queryOpts
?:
IQueryMapFeaturesOptions
, success
?:
undefined
|
function
, failure
?:
undefined
|
function
)
:
void
Parameters
xml:
string
Optional
queryOpts:
IQueryMapFeaturesOptions
Optional
success:
undefined
|
function
Optional
failure:
undefined
|
function
Returns
void
set
State
set
State<K>
(
f
:
function
, callback
?:
undefined
|
function
)
:
void
set
State<K>
(
state
:
Pick
<
any
,
K
>
, callback
?:
undefined
|
function
)
:
void
Type parameters
K
:
keyof S
Parameters
f:
function
(
prevState
:
any
, props
:
MapViewerContainerProps
)
:
Pick
<
any
,
K
>
Parameters
prevState:
any
props:
MapViewerContainerProps
Returns
Pick
<
any
,
K
>
Optional
callback:
undefined
|
function
Returns
void
Type parameters
K
:
keyof S
Parameters
state:
Pick
<
any
,
K
>
Optional
callback:
undefined
|
function
Returns
void
zoom
Delta
zoom
Delta
(
delta
:
number
)
:
void
Parameters
delta:
number
Returns
void
zoom
ToExtent
zoom
ToExtent
(
extent
:
Bounds
)
:
void
Parameters
extent:
Bounds
Returns
void
zoom
ToView
zoom
ToView
(
x
:
number
, y
:
number
, scale
:
number
)
:
void
Parameters
x:
number
y:
number
scale:
number
Returns
void
Static
Optional
component
Did
Mount
component
Did
Mount
(
)
:
void
Returns
void
Static
Optional
component
Did
Update
component
Did
Update
(
prevProps
:
Readonly
<
MapViewerContainerProps
>
, prevState
:
Readonly
<
any
>
, prevContext
:
any
)
:
void
Parameters
prevProps:
Readonly
<
MapViewerContainerProps
>
prevState:
Readonly
<
any
>
prevContext:
any
Returns
void
Static
Optional
component
Will
Mount
component
Will
Mount
(
)
:
void
Returns
void
Static
Optional
component
Will
Receive
Props
component
Will
Receive
Props
(
nextProps
:
Readonly
<
MapViewerContainerProps
>
, nextContext
:
any
)
:
void
Parameters
nextProps:
Readonly
<
MapViewerContainerProps
>
nextContext:
any
Returns
void
Static
Optional
component
Will
Unmount
component
Will
Unmount
(
)
:
void
Returns
void
Static
Optional
component
Will
Update
component
Will
Update
(
nextProps
:
Readonly
<
MapViewerContainerProps
>
, nextState
:
Readonly
<
any
>
, nextContext
:
any
)
:
void
Parameters
nextProps:
Readonly
<
MapViewerContainerProps
>
nextState:
Readonly
<
any
>
nextContext:
any
Returns
void
Static
Optional
should
Component
Update
should
Component
Update
(
nextProps
:
Readonly
<
MapViewerContainerProps
>
, nextState
:
Readonly
<
any
>
, nextContext
:
any
)
:
boolean
Parameters
nextProps:
Readonly
<
MapViewerContainerProps
>
nextState:
Readonly
<
any
>
nextContext:
any
Returns
boolean
Object literals
Static
context
Types
context
Types
:
object
store
store
:
Requireable
<
any
>
= PropTypes.object
Globals
"containers/map-
viewer"
Map
Viewer
Container
constructor
context
props
refs
state
add
Handler
add
Interaction
add
Layer
add
Overlay
cancel
Digitization
clear
Selection
component
Did
Mount
component
Will
Receive
Props
digitize
Circle
digitize
Line
digitize
Line
String
digitize
Point
digitize
Polygon
digitize
Rectangle
force
Update
get
Active
Tool
get
Current
Extent
get
Current
View
get
Layer
get
Meters
Per
Unit
getOLFactory
get
Projection
get
Resolution
get
Selection
get
Selection
Xml
get
Size
get
View
For
Extent
has
Layer
initial
View
is
Digitizing
is
Feature
Tooltip
Enabled
query
Map
Features
refresh
Map
remove
Handler
remove
Interaction
remove
Layer
remove
Overlay
render
scale
ToResolution
select
ByGeometry
set
Active
Tool
set
Feature
Tooltip
Enabled
set
Selection
Xml
set
State
zoom
Delta
zoom
ToExtent
zoom
ToView
component
Did
Mount
component
Did
Update
component
Will
Mount
component
Will
Receive
Props
component
Will
Unmount
component
Will
Update
should
Component
Update
context
Types
IMap
Viewer
Container
Dispatch
IMap
Viewer
Container
Props
IMap
Viewer
Container
State
Map
Viewer
Container
Props
Generated using
TypeDoc