<div dir="ltr">The trick here is modifying the LayerSwitcher div CSS property (overflow:scroll). You´ll have to make your own css file in this case.<br><br>You can see an example of this in this URL (click in the upper-right arrow image to open the layerSwitcher): <a href="http://www.mirame.chduero.es/DMADuero_09_Viewer">http://www.mirame.chduero.es/DMADuero_09_Viewer</a><br>
<br>Regards,<br><br>Juan<br><br><div class="gmail_quote">2008/9/10 Michelle Richardson <span dir="ltr">&lt;<a href="mailto:michelle.richardson2@baesystems.com">michelle.richardson2@baesystems.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hiya<br>
<br>
I am creating a web site with an OpenLayers map control and am having<br>
trouble with the LayerSwitcher. &nbsp;The list of layers in the LayerSwitcher may<br>
make this control taller than the map control itself and the layers at the<br>
bottom of the list aren&#39;t visible and the LayerSwitcher doesn&#39;t scroll.<br>
This problem occurs in both IE7 and Safari.<br>
<br>
I don&#39;t know at design time the actual length of the list of layers as the<br>
map control is configurable by the client and the list of available layers<br>
is collected at runtime from the WMS service&#39;s GetCapabilities Method. &nbsp;This<br>
means I will have to allow for layer lists of all sizes.<br>
<br>
Is there a way to make the LayerSwitcher scroll vertically? &nbsp;I&#39;ve tried<br>
changing the properties of the map&#39;s div but that doesn&#39;t work. &nbsp;The actual<br>
divs with the LayerSwitcher etc, are created at runtime by OpenLayers and I<br>
don&#39;t seem to be able to get at them. &nbsp;I don&#39;t have a lot of JavaScript or<br>
OpenLayers experience so I thought I might be missing something.<br>
<br>
Thanks :)<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Scrollable-LayerSwitcher--tp19410284p19410284.html" target="_blank">http://www.nabble.com/Scrollable-LayerSwitcher--tp19410284p19410284.html</a><br>
Sent from the OpenLayers Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</font></blockquote></div><br><br>
</div>