Thanks for the feedback. (I am going to try and find the JavaScript console).
I can finally see the layers now Tile.html <http://osgeo-org.1560.x6.nabble.com/file/n5243699/Tile.html> Now I need to add a legend so that the user can switch the layers on and off. I was following this example: https://github.com/walkermatt/ol3-layerswitcher/blob/master/examples/layerswitcher.js <https://github.com/walkermatt/ol3-layerswitcher/blob/master/examples/layerswitcher.js> And I added the following code because I think this is the legend part. But it does not show up on the map: var layerSwitcher = new ol.control.LayerSwitcher({ tipLabel: 'Légende' // Optional label for button }); map.addControl(layerSwitcher); -- View this message in context: http://osgeo-org.1560.x6.nabble.com/layerswitcher-js-and-adding-vector-data-from-Geoserver-tp5243249p5243699.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
