Exports selected vector layers to an interactive Leaflet HTML map with basemap selector, layer control, and attribute search.
- Download the source code as a ZIP archive.
- Uncompress the ZIP file.
- Move the extracted
VectorLayersExport2WebHTMLparent folder to the QGIS 4 plugins directory (create folders if they don't exist):
%APPDATA%\QGIS\QGIS4\profiles\default\python\plugins
Note: Ensure you have at least one vector layer loaded in a QGIS 4.0 project before proceeding.
- Load one or more vector layers in QGIS 4.0.
- Enable VectorLayersExport2WebHTML from the Plugin Manager (a new toolbar icon 🌐 appears).
- Click the 🌐 toolbar button to open the export dialog.
- In the dialog, select the layers you want to export (hold Ctrl to select multiple).
- Choose an output folder and filename for the HTML map.
- Click Export – the generated web map will open in your default browser.
Note: Only layers in EPSG:4326 (WGS84) are exported. Layers with a different CRS are automatically skipped, and a warning lists them. Reproject your layers to EPSG:4326 if you need them included.