[OpenLayers-Commits] r10848 - trunk/openlayers/lib/OpenLayers

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Oct 18 15:12:13 EDT 2010


Author: crschmidt
Date: 2010-10-18 12:12:13 -0700 (Mon, 18 Oct 2010)
New Revision: 10848

Modified:
   trunk/openlayers/lib/OpenLayers/Layer.js
Log:
Mention that layer.display is not designed for external use, and redirect
users to setVisibility. No functional change.


Modified: trunk/openlayers/lib/OpenLayers/Layer.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer.js	2010-10-18 09:46:46 UTC (rev 10847)
+++ trunk/openlayers/lib/OpenLayers/Layer.js	2010-10-18 19:12:13 UTC (rev 10848)
@@ -704,7 +704,9 @@
 
     /** 
      * 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}



More information about the Commits mailing list