The interactive example that Ben Caradoc-Davies posted is perfect for what I'm looking for.
I have attached the HTML code of my map. I am new to this and I was wondering where the javascript code goes. Do I have to create a javascript file? And paste and play around with the code from https://github.com/walkermatt/ol3-layerswitcher/blob/master/examples/layerswitcher.js <https://github.com/walkermatt/ol3-layerswitcher/blob/master/examples/layerswitcher.js> ? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Creating-a-legend-in-Geoserver-tp5242993p5243022.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users