From 80a61859478bd1f72c354d77ba76b877b82cf053 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 10 Apr 2013 10:18:56 +0200 Subject: [PATCH] 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. --- lib/OpenLayers/Map.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index e42a2b0aac..de8cd602af 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -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.