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"><<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>></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>
"OpenLayers WMS",<br>
"<a href="http://labs.metacarta.com/wms/vmap0" target="_blank">http://labs.metacarta.com/wms/vmap0</a>",<br>
{<br>
layers: 'basic',<br>
}, {<br>
displayInLayerSwitcher: false,<br>
isBaseLayer: true<br>
}<br>
);<br>
<br>
</div>Best regards,<br>
Bart<br>
<div><div></div><div class="h5"><br>
> Can you not hide the basic OpenLayers map in the layer switcher? I've done<br>
> it with other base maps but for some reason:<br>
><br>
> var ol_wms = new OpenLayers.Layer.WMS(<br>
> "OpenLayers WMS",<br>
> "<a href="http://labs.metacarta.com/wms/vmap0" target="_blank">http://labs.metacarta.com/wms/vmap0</a>",<br>
> {<br>
> layers: 'basic',<br>
> displayInLayerSwitcher: false,<br>
> isBaseLayer: true<br>
> }<br>
> );<br>
><br>
> Displays this layer at the top in the layer switcher. Is there something<br>
> else I should be doing?<br>
><br>
> --<br>
> web <a href="http://www.hyxspace.com" target="_blank">http://www.hyxspace.com</a><br>
> aim hyx1138<br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><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>