Yet another documentation improvement for #932.
Now it should be clear that the map's changelayer event is triggered whenever the layer's actual visibility (i.e. visible to the user) changes.
This commit is contained in:
@@ -70,12 +70,13 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
* object will include a *layer* property that references the removed
|
||||
* layer.
|
||||
* changelayer - triggered after a layer name change, order change,
|
||||
* opacity change, params change, visibility change (due to resolution
|
||||
* thresholds) or attribution change (due to extent change). Listeners
|
||||
* will receive an event object with *layer* and *property* properties.
|
||||
* The *layer* property will be a reference to the changed layer. The
|
||||
* *property* property will be a key to the changed property (name,
|
||||
* order, opacity, params, visibility or attribution).
|
||||
* opacity change, params change, visibility change (actual visibility,
|
||||
* not the layer's visibility property) or attribution change (due to
|
||||
* extent change). Listeners will receive an event object with *layer*
|
||||
* and *property* properties. The *layer* property will be a reference
|
||||
* to the changed layer. The *property* property will be a key to the
|
||||
* changed property (name, order, opacity, params, visibility or
|
||||
* attribution).
|
||||
* movestart - triggered after the start of a drag, pan, or zoom. The event
|
||||
* object may include a *zoomChanged* property that tells whether the
|
||||
* zoom has changed.
|
||||
|
||||
Reference in New Issue
Block a user