From 937c0032faeb40f831933db4718fd23627e438c3 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 1 May 2007 14:04:19 +0000 Subject: [PATCH] fix for #683 -- fixes markers layer visibility/inrangeitude on startup git-svn-id: http://svn.openlayers.org/trunk/openlayers@3103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index fe82f36318..c01167af78 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -286,6 +286,8 @@ OpenLayers.Layer.prototype = { if (!this.isBaseLayer) { this.inRange = this.calculateInRange(); + var show = ((this.visibility) && (this.inRange)); + this.div.style.display = show ? "" : "none"; } // deal with gutters