[OpenLayers-Commits] r3103 - trunk/openlayers/lib/OpenLayers
commits at openlayers.org
commits at openlayers.org
Tue May 1 10:04:21 EDT 2007
Author: euzuro
Date: 2007-05-01 10:04:19 -0400 (Tue, 01 May 2007)
New Revision: 3103
Modified:
trunk/openlayers/lib/OpenLayers/Layer.js
Log:
fix for #683 -- fixes markers layer visibility/inrangeitude on startup
Modified: trunk/openlayers/lib/OpenLayers/Layer.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer.js 2007-04-30 02:13:50 UTC (rev 3102)
+++ trunk/openlayers/lib/OpenLayers/Layer.js 2007-05-01 14:04:19 UTC (rev 3103)
@@ -286,6 +286,8 @@
if (!this.isBaseLayer) {
this.inRange = this.calculateInRange();
+ var show = ((this.visibility) && (this.inRange));
+ this.div.style.display = show ? "" : "none";
}
// deal with gutters
More information about the Commits
mailing list