Class: ol.View2D

ol.View2D

new View2D

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

Extends

Members

changed

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

setValues

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

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

Source:
  • view2d.js, line 44

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 135

fitExtent

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

get

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

getCenter

Source:
  • view2d.js, line 75

getExtent

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

getHints

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

getProjection

Source:
  • view2d.js, line 104

getResolution

Source:
  • view2d.js, line 117

getResolutionForExtent

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

getRotation

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

getView2D

Source:
  • view2d.js, line 155

getView2DState

Source:
  • view2d.js, line 163

getView3D

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

isDef

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

notify

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

rotate

Parameters:
Name Type Description
map ol.Map Map.
rotation number | undefined Rotation.
delta number Delta.
Source:
  • view2d.js, line 259

set

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

setCenter

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

setHint

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

setOptions

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

setProjection

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

setResolution

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

setRotation

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

unbind

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

unbindAll

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

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 295

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 312