Class: ol.View2D

ol.View2D

new View2D

Parameters:
Name Type Argument Description
view2DOptions ol.View2DOptions= <optional>
(Optional) View2D options.
Source:
  • view2d.js, line 40

Extends

Members

changed

Inherited From:
Source:
  • object.js, line 166

setValues

Inherited From:
Source:
  • object.js, line 275

<inner> values :Object.<string, *>

Source:
  • view2d.js, line 47

Methods

bindTo

Parameters:
Name Type Argument Description
key string Key.
target ol.Object Target.
targetKey string= <optional>
(Optional) Target key.
noNotify boolean= <optional>
(Optional) No notify.
Inherited From:
Source:
  • object.js, line 145

fitExtent

Parameters:
Name Type Description
extent ol.Extent Extent.
size ol.Size Box pixel size.
Source:
  • view2d.js, line 192

get

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • object.js, line 173
Returns:
Value.
Type
*

getCenter

Source:
  • view2d.js, line 78

getExtent

Parameters:
Name Type Description
size ol.Size Box pixel size.
Source:
  • view2d.js, line 92
Returns:
Extent.
Type
ol.Extent

getHints

Inherited From:
Source:
  • view.js, line 41
Returns:
Hint.
Type
Array.<number>

getKeys

Get a list of object property names.
Inherited From:
Source:
  • object.js, line 197
Returns:
List of property names.
Type
Array.<string>

getProjection

Source:
  • view2d.js, line 107

getResolution

Source:
  • view2d.js, line 120

getResolutionForExtent

Parameters:
Name Type Description
extent ol.Extent Extent.
size ol.Size Box pixel size.
Source:
  • view2d.js, line 135
Returns:
Resolution.
Type
number

getRotation

Source:
  • view2d.js, line 145
Returns:
Map rotation.
Type
number

getView2D

Source:
  • view2d.js, line 158

getView2DState

Source:
  • view2d.js, line 166

getView3D

FIXME return type
Source:
  • view2d.js, line 184

isDef

Source:
  • view2d.js, line 203
Returns:
Is defined.
Type
boolean

notify

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • object.js, line 208

rotate

Parameters:
Name Type Argument Description
map ol.Map Map.
rotation number | undefined Rotation.
anchor ol.Coordinate= <optional>
(Optional) Anchor coordinate.
Source:
  • view2d.js, line 262

set

Parameters:
Name Type Description
key string Key.
value * Value.
Inherited From:
Source:
  • object.js, line 236

setCenter

Parameters:
Name Type Description
center ol.Coordinate | undefined Center.
Source:
  • view2d.js, line 212

setHint

Parameters:
Name Type Description
hint ol.ViewHint Hint.
delta number Delta.
Inherited From:
Source:
  • view.js, line 62

setOptions

Parameters:
Name Type Description
options Object.<string, *> Options.
Inherited From:
Source:
  • object.js, line 258

setProjection

Parameters:
Name Type Description
projection ol.Projection | undefined Projection.
Source:
  • view2d.js, line 224

setResolution

Parameters:
Name Type Description
resolution number | undefined Resolution.
Source:
  • view2d.js, line 236

setRotation

Parameters:
Name Type Description
rotation number | undefined Rotation.
Source:
  • view2d.js, line 248

unbind

Parameters:
Name Type Description
key string Key.
Inherited From:
Source:
  • object.js, line 281

unbindAll

Removes all bindings.
Inherited From:
Source:
  • object.js, line 298

zoom

Parameters:
Name Type Argument Description
map ol.Map Map.
delta number Delta from previous zoom level.
anchor ol.Coordinate= <optional>
(Optional) Anchor coordinate.
duration number= <optional>
(Optional) Duration.
Source:
  • view2d.js, line 313

zoomToResolution

Parameters:
Name Type Argument Description
map ol.Map Map.
resolution number | undefined Resolution to go to.
anchor ol.Coordinate= <optional>
(Optional) Anchor coordinate.
Source:
  • view2d.js, line 332