Class: ol.Collection

ol.Collection

new Collection

Parameters:
Name Type Description
array Array= (Optional) Array.
Source:
  • collection.js, line 77

Extends

Members

changed

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

setValues

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

Methods

bindTo

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

clear

Remove all elements from the collection.
Source:
  • collection.js, line 96

forEach

Parameters:
Name Type Description
f Function Function.
obj Object= (Optional) Object.
Source:
  • collection.js, line 107

get

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

getArray

Source:
  • collection.js, line 115
Returns:
Array.
Type
Array

getAt

Parameters:
Name Type Description
index number Index.
Source:
  • collection.js, line 124
Returns:
Element.
Type
*

getLength

Source:
  • collection.js, line 132
Returns:
Length.
Type
number

insertAt

Parameters:
Name Type Description
index number Index.
elem * Element.
Source:
  • collection.js, line 141

notify

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

pop

Source:
  • collection.js, line 154
Returns:
Element.
Type
*

push

Parameters:
Name Type Description
elem * Element.
Source:
  • collection.js, line 163
Returns:
Length.
Type
number

removeAt

Parameters:
Name Type Description
index number Index.
Source:
  • collection.js, line 174
Returns:
Value.
Type
*

set

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

setAt

Parameters:
Name Type Description
index number Index.
elem * Element.
Source:
  • collection.js, line 190

setOptions

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

unbind

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

unbindAll

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