[OpenLayers-Users] displayInLayerSwitcher option

andy aborruso at tin.it
Fri Apr 27 11:27:13 EDT 2007


Thank you eric.
I have tried but I have always the layer in LayerSwitcher.

thank you,

a

Eric Lemoine ha scritto:
> On 4/27/07, andy <aborruso at tin.it> wrote:
>> Hi all,
>> another stupid question. I would like to hide a layer in the
>> layerswitcher. I know I can use displayInLayerSwitcher option, but
>> probably my lack of javascript knowledge is too big.
>>
>> I have tried with unsuccess with this kind of syntax (openlayers 2.3):
>> "var myvar= new OpenLayers.Layer.WMS( "Mylayername",
>> "http://mywmsserver/wms?", {layers: 'mylayer', format:
>> 'image/png',displayInLayerSwitcher: 'false'},{isBaseLayer: false});"
>>
>> Which is the right way to hide a layer from LayerSwitcher?
>>
>> Thank you for all your dev and support job,
>
> Hi Andy,
>
> Try removing the quotes around false, in the same way as isBaseLayer.
>
>




More information about the Users mailing list