new Layers()
A store that synchronizes a collection of layers (e.g. of an OpenLayers.Map)
with a layer store holding GeoExt.data.model.Layer instances.
- Source:
Methods
(static) bindLayer(layer, record)
Bind the layer to the record and initialize synchronized values.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Base | The layer. |
record |
Ext.data.Model | The record, if not set it will be searched for. |
- Source:
(static) bindLayers(layers, map)
Bind this store to a collection of layers; once bound, the store is
synchronized with the layer collection and vice-versa.
Parameters:
Name | Type | Description |
---|---|---|
layers |
ol.Collection | The layer collection (`ol.layer.Base`). |
map |
ol.Map | Optional map from which the layers were derived |
- Source:
(static) bindMap(map)
Bind this store to a map instance; once bound, the store is synchronized
with the map and vice-versa.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map instance. |
- Source:
(static) constructor(config)
Constructs an instance of the layer store.
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | The configuration object. |
- Source:
(static) getByLayer(layer, filterFnopt) → {Ext.data.Model}
Get the record for the specified layer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layer |
ol.layer.Base | The layer to get a model instance for. | |
filterFn |
function |
<optional> |
A filter function |
- Source:
Returns:
The corresponding model instance or undefined if
not found.
- Type
- Ext.data.Model
(static) loadRawData()
The event firing behaviour of Ext.4.1 is reestablished here. See also:
[This discussion on the Sencha forum](http://www.sencha.com/forum/
showthread.php?253596-beforeload-is-not-fired-by-loadRawData).
- Source:
(static) synchronize(destination, source, prop)
This function synchronizes a value, but only sets it if it is different.
Parameters:
Name | Type | Description |
---|---|---|
destination |
Ext.data.Model | ol.layer.Base | The destination. |
source |
Ext.data.Model | ol.layer.Base | The source. |
prop |
string | The property that should get synchronized. |
- Source:
(static) unbindLayers()
Unbind this store from the layer collection it is currently bound.
- Source:
(static) unbindMap()
Unbind this store from the map it is currently bound.
- Source: