[OpenLayers-Users] Repost: [Geoserver-users] LayerSwitcher() not working

Steffen G martsystems at gmx.net
Tue Jul 9 23:38:09 PDT 2013


try:

map.addControl(new OpenLayers.Control.PanZoomBar({
    position : new OpenLayers.Pixel(2,15)
}));
map.addControl(new OpenLayers.Control.Navigation());
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.zoomToExtent(bounds);

Your last bracket is wrong. 



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Repost-Geoserver-users-LayerSwitcher-not-working-tp5065279p5065297.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list