You have *three* <script> tags that load ol.js. You also have multiple script tags for your other js when you should have only one for each. If you use defer, it should be fine to include only the ones in the body.
Kind regards, Ben. On 28/12/15 09:49, epyks23 wrote: > I checked out the links. I have attached my HTML and JS file but it seems > that I get two maps (my Geoserver map and the OSM map). index2.html > <http://osgeo-org.1560.x6.nabble.com/file/n5243031/index2.html> > mylayerswitcher.js > <http://osgeo-org.1560.x6.nabble.com/file/n5243031/mylayerswitcher.js> > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Creating-a-legend-in-Geoserver-tp5242993p5243031.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 > -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
