I don't have the OL code by my hand right now to check it out, but if
<br>for some reason there is a setter defined for a property it is better
<br>to use that setter instead of changing property directly.
<br>There may be nothing critical for, say, GeoRSS layer, but handling
<br>Google layer may be more complicated than just &quot;now we draw this, now
<br>we don't&quot;: it may reflect a tile loading, zoom level selection and so
<br>on.
<br>So, I'm doing this just in case :)
<br><br>dixi
<br><br>2009/7/2 HKChad (via Nabble) &lt;<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3208739&i=0" target="_top" rel="nofollow">ml-user+183155-121512562@...</a>&gt;:
<br>&gt; Why is that better? Is it another way? Sure. Is it better? Not so sure, Why?
<br>&gt; The solution I posted just shows how to set the visibility at time of Layer
<br>&gt; construction. So if you do it 'your way' and set visibility prior to adding
<br>&gt; the layer to the map, it makes no difference. Just curious as to why you
<br>&gt; think it's 'better'.
<br><div class='shrinkable-quote'><br>&gt; Raja_Kajiev wrote:
<br>&gt; IMO, better way is to use setter:
<br>&gt;
<br>&gt; ce.setVisibility(false);
<br>&gt;
<br>&gt; Barker, Doug wrote:
<br>&gt; Hi,
<br>&gt; How do I have the overlays in a map turned off when the map starts up?
<br>&gt; ...
<br>&gt;
<br>&gt; ________________________________
<br>&gt; This email is a reply to your post @
<br>&gt; <a href="http://n2.nabble.com/How-to-have-overlays-off-by-default-tp3191421p3195235.html" target="_top" rel="nofollow">http://n2.nabble.com/How-to-have-overlays-off-by-default-tp3191421p3195235.html</a><br>&gt; You can reply by email or by visting the link above.
<br>&gt;
<br>&gt;
</div><br><br><br>-- 
<br>LinkedIn: <a href="http://www.linkedin.com/pub/aleksey-smirnov/13/598/3b3" target="_top" rel="nofollow">http://www.linkedin.com/pub/aleksey-smirnov/13/598/3b3</a><br>
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/How-to-have-overlays-off-by-default-tp3191421p3208739.html">Re: [OpenLayers-Users] How to have overlays off by default</a><br>
Sent from the <a href="http://n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>