[OpenLayers-Users] Layer not checked in LayerSwitcher

Jerome Freyre jerome.freyre at hispeed.ch
Thu Sep 3 08:45:15 EDT 2009


Hi Maren.
If you want that your layer appear in the layer switcher, you have to remove
the property visibility:false.


Maren Kiehl wrote:
> 
> Hi at all.
> 
> I have some Layers in my OpenLayers-map as overlaysThe problem is they 
> shouldn't be checked in the LayerSwitcher by loading the map.
> That's how I tried it, but without success:
> 
> var wms = new OpenLayers.Layer.WMS.Untiled(
>                     "Plan 1924",
>                     
> "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/osnamap/includes/wms.map",
>                     {visibility:false, isBaseLayer:false, transparent: 
> true, layers: 'plan1924'}
>                 );
> 
> Could anybody tell me how to switch the layer of?
> Thanks for help.
> 
> Best regards,
> Maren
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Layer-not-checked-in-LayerSwitcher-tp3572932p3572956.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list