Base layer class for dojox.geo.openlayers.Map specific layers extending OpenLayers.Layer class. This layer class accepts Features which encapsulates graphic objects to be added to the map. This layer class encapsulates an OpenLayers.Layer. This class provides Feature management such as add, remove and feature access.
Parameter | Type | Description |
---|---|---|
name | String | The name of the layer. |
options | Object | Options passed to the underlying OpenLayers.Layer object. |
See the dojox/geo/openlayers/Layer reference documentation for more information.
Add a feature or an array of features to the layer.
Parameter | Type | Description |
---|---|---|
f | Feature | Feature[] | The Feature or array of features to add. |
Returns the i-th feature of this layer.
Parameter | Type | Description |
---|---|---|
i | Number | The index of the feature to return. |
The i-th feature of this layer.
Returns the number of the features contained by this layer.
The number of the features contained by this layer.
Returns the feature hold by this layer.
The untouched array of features hold by this layer.
Called when the layer is panned or zoomed.
Parameter | Type | Description |
---|---|---|
event | MouseEvent | The event |
Removes a feature or an array of features from the layer.
Parameter | Type | Description |
---|---|---|
f | Feature | Feature[] | The Feature or array of features to remove. |
Remove the feature at the specified index.
Parameter | Type | Description |
---|---|---|
index | int | The index of the feature to remove. |
Called when rendering a feature is necessary.
Parameter | Type | Description |
---|---|---|
f | dojox/geo/openlayers/Feature | The feature to draw. |