A special layer type to combine multiple vector layers inside a single renderer root container. This class is not supposed to be instantiated from user space, it is a helper class for controls that require event processing for multiple vector layers.
OpenLayers. | A special layer type to combine multiple vector layers inside a single renderer root container. |
Properties | |
displayInLayerSwitcher | Set to false for this layer type |
layers | Layers that are attached to this container. |
Constructor | |
OpenLayers. | Create a new root container for multiple vector layer. |
Functions | |
display | |
getFeatureFromEvent | walk through the layers to find the feature returned by the event |
setMap | |
removeMap | |
collectRoots | Collects the root nodes of all layers this control is configured with and moveswien the nodes to this control’s layer |
resetRoots | Resets the root nodes back into the layers they belong to. |
handleChangeLayer | Event handler for the map’s changelayer event. |
Create a new root container for multiple vector layer. This constructor is not supposed to be used from user space, it is only to be used by controls that need feature selection across multiple vector layers.
name | {String} A name for the layer |
options | {Object} Optional object with non-default properties to set on the layer. |
layers | {Array(OpenLayers.Layer.Vector)} The layers managed by this container |
{OpenLayers.Layer.Vector.RootContainer} A new vector layer root container
display: function()
walk through the layers to find the feature returned by the event
getFeatureFromEvent: function( evt )
setMap: function( map )
removeMap: function( map )
Collects the root nodes of all layers this control is configured with and moveswien the nodes to this control’s layer
collectRoots: function()
Resets the root nodes back into the layers they belong to.
resetRoots: function()
Event handler for the map’s changelayer event.
handleChangeLayer: function( evt )