Class: ol.View2D

ol.View2D

new View2D

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

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 43

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 188

get

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

getCenter

Source:
  • view2d.js, line 74

getExtent

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

getHints

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

getProjection

Source:
  • view2d.js, line 103

getResolution

Source:
  • view2d.js, line 116

getResolutionForExtent

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

getRotation

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

getView2D

Source:
  • view2d.js, line 154

getView2DState

Source:
  • view2d.js, line 162

getView3D

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

isDef

Source:
  • view2d.js, line 199
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 258

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 208

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 220

setResolution

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

setRotation

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

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.
Source:
  • view2d.js, line 293

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 304