0

I export my qgis project with 4 layers and I want put it in my website. I don't like the style of qgis2web and I want to edit the code. I putted in my text editor but I understood that is not easy to modify the panel layer.

How do I overwrite it with my code?

2
  • Are you exporting to OpenLayers 3 or to Leaflet? Jan 19, 2017 at 16:53
  • I used OpenLayers 3
    – ATO
    Jan 20, 2017 at 14:20

2 Answers 2

1

To modify the appearance of the OpenLayers 3 layers list, open your output folder, and edit /resources/ol3-layerswitcher.css. There is an outside chance you might also need to edit /resources/ol3-layerswitcher.js, but it's unlikely.

1

I found the solution to edit your panel layers

https://github.com/davicustodio/Leaflet.StyledLayerControl

1
  • Glad you got it sorted for Leaflet exports . For OpenLayers 3, my answer should help you. Jan 21, 2017 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.