From 2bb081255e5b86e80b5f5ba9b513d639fcc3421e Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 18 Oct 2010 19:12:13 +0000 Subject: [PATCH] Mention that layer.display is not designed for external use, and redirect users to setVisibility. No functional change. git-svn-id: http://svn.openlayers.org/trunk/openlayers@10848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index fc3635e21a..fd09e8dd37 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -704,7 +704,9 @@ OpenLayers.Layer = OpenLayers.Class({ /** * APIMethod: display - * Hide or show the Layer + * Hide or show the Layer. This is designed to be used internally, and + * is not generally the way to enable or disable the layer. For that, + * use the setVisibility function instead.. * * Parameters: * display - {Boolean}