[OpenLayers-Users] Really basic question about base layers

Robert Hicks robhyx at gmail.com
Fri Mar 5 10:44:58 EST 2010


Works great, I probably should have taken a closer look at that :/

Thanks!

On Fri, Mar 5, 2010 at 9:27 AM, <bartvde at osgis.nl> wrote:

> Options are the 4th parameter of the constructor, so use:
>
>         var ol_wms = new OpenLayers.Layer.WMS(
>             "OpenLayers WMS",
>             "http://labs.metacarta.com/wms/vmap0",
>             {
>                 layers: 'basic',
>             }, {
>                 displayInLayerSwitcher: false,
>                 isBaseLayer: true
>              }
>         );
>
> Best regards,
> Bart
>
> > Can you not hide the basic OpenLayers map in the layer switcher? I've
> done
> > it with other base maps but for some reason:
> >
> >         var ol_wms = new OpenLayers.Layer.WMS(
> >             "OpenLayers WMS",
> >             "http://labs.metacarta.com/wms/vmap0",
> >             {
> >                 layers: 'basic',
> >                 displayInLayerSwitcher: false,
> >                 isBaseLayer: true
> >             }
> >         );
> >
> > Displays this layer at the top in the layer switcher. Is there something
> > else I should be doing?
> >
> > --
> > web http://www.hyxspace.com
> > aim hyx1138
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
>


-- 
web http://www.hyxspace.com
aim hyx1138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100305/e840ba4a/attachment.html


More information about the Users mailing list