<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jan,<br>
<br>
looks as if you are still adding two LayerSwitcher Controls:<br>
<ol>
  <li>in the Map-Constructor (new OpenLayers.Map(...))</li>
  <li>and one in line 219 (map.addControl(new
OpenLayers.Control.LayerSwitcher());)</li>
</ol>
I'd suggest getting rid of the second one.<br>
<br>
What exactly do you mean by deactivate the checkbox? Adding
displayInLayerSwitcher : false to a layers options-object will result
in a layer not being shon in the LayerSwitcher.<br>
<br>
Regards,<br>
Marc<br>
<br>
<br>
Am 20.08.2010 16:37, schrieb Jan Tappenbeck:
<blockquote cite="mid:4C6E930D.9090008@tappenbeck.net" type="cite">
  <pre wrap="">Am 20.08.2010 15:05, schrieb BMcBride:
  </pre>
  <blockquote type="cite">
    <pre wrap="">
OK- So it looks like you have several instances of the LayerSwitcher control
in your code (see lines 46, 62, 219). This is why it does not appear to hide
correctly.  Remove 2 of these controls and you should be all set.

As for your "layer not defined" error...  I was assuming that you were
trying to hide a layer when the map initially loads.  So if you wanted the
"Hofladen" layer to be initially hidden and unchecked, you would have to set
the layer as a variable and use setVisibility(false);.


var hofladen =  new OpenLayers.Layer.PopupMarker("Hofladen", {  ...

map.addLayer(hofladen);
hofladen.setVisibility(false);


-----
Bryan R. McBride, GISP
<a class="moz-txt-link-freetext" href="http://www.bryanmcbride.com">http://www.bryanmcbride.com</a> bryanmcbride.com
<a class="moz-txt-link-freetext" href="http://geoserving.net/">http://geoserving.net/</a> geoserving.net
    </pre>
  </blockquote>
  <pre wrap="">
thanks for response.

now i kill a double layers switch in

<a class="moz-txt-link-freetext" href="http://www.tappenbeck.net/osm/maps/deu/index_new.php?id=1017">http://www.tappenbeck.net/osm/maps/deu/index_new.php?id=1017</a>

but when you click "+" only an other layerpanel will show - like a 
overlay to the other. but i see no possiblity to hide the hole panel again !

can you give me more detail because my englisch is not very well and i 
am a beginner of ol!!

this was one question - the other is how to deactive a layer-checkbox in 
the panel by default ??!?!?

can you help me more ??

regards Jan :-)

_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>

  </pre>
</blockquote>
<br>
</body>
</html>