Works great, I probably should have taken a closer look at that :/ <br><br>Thanks!<br><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 9:27 AM,  <span dir="ltr">&lt;<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Options are the 4th parameter of the constructor, so use:<br>
<div class="im"><br>
         var ol_wms = new OpenLayers.Layer.WMS(<br>
             &quot;OpenLayers WMS&quot;,<br>
             &quot;<a href="http://labs.metacarta.com/wms/vmap0" target="_blank">http://labs.metacarta.com/wms/vmap0</a>&quot;,<br>
             {<br>
                 layers: &#39;basic&#39;,<br>
             }, {<br>
                 displayInLayerSwitcher: false,<br>
                 isBaseLayer: true<br>
              }<br>
         );<br>
<br>
</div>Best regards,<br>
Bart<br>
<div><div></div><div class="h5"><br>
&gt; Can you not hide the basic OpenLayers map in the layer switcher? I&#39;ve done<br>
&gt; it with other base maps but for some reason:<br>
&gt;<br>
&gt;         var ol_wms = new OpenLayers.Layer.WMS(<br>
&gt;             &quot;OpenLayers WMS&quot;,<br>
&gt;             &quot;<a href="http://labs.metacarta.com/wms/vmap0" target="_blank">http://labs.metacarta.com/wms/vmap0</a>&quot;,<br>
&gt;             {<br>
&gt;                 layers: &#39;basic&#39;,<br>
&gt;                 displayInLayerSwitcher: false,<br>
&gt;                 isBaseLayer: true<br>
&gt;             }<br>
&gt;         );<br>
&gt;<br>
&gt; Displays this layer at the top in the layer switcher. Is there something<br>
&gt; else I should be doing?<br>
&gt;<br>
&gt; --<br>
&gt; web <a href="http://www.hyxspace.com" target="_blank">http://www.hyxspace.com</a><br>
&gt; aim hyx1138<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>web <a href="http://www.hyxspace.com">http://www.hyxspace.com</a><br>aim hyx1138<br>