enter image description hereI am using Qgis2Web to create a webmap application. I have choose a basemap but it dosen't appears in the layerlist(collapsed layerlist).How could I edit the exported code (probably the qgis2web.js file ) in order to do this.

What i actually want to do is to add 2 or more basemaps in the final project and let the user choose from the layerlist.

  • Are you exporting your webmap in Leaflet format or OpenLayers? What you describe should work, so we need to find out where the problem lies. Sep 6, 2017 at 8:26
  • I use OpenLayers. Sep 6, 2017 at 13:33

1 Answer 1


You can select multiple basemaps in the qgis2web interface. Click the first, then CTRL-click (PC)/command-click (Mac) the additional ones you need. That then puts all the basemaps into the layers list, allowing them to choose which to display.


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.