2

I have been trying to export a map from QGIS using the qgis2web plugin. But my polygons and classification colors are not displayed in the exported HTML file, I only can see the Google Street Map layer.

My map has a layer for Google Street Map and another with polygons from a shapefile, colored based on one of the columns from a CSV file.

Here's the map: enter image description here

When I try to export the map (I tried OpenLayers and Leaflet), the preview is what I expect: enter image description here

but the final HTML file only displays the Google Street Map layer. Not the polygons/colors.

enter image description here

Any thoughts on why is that happening?

EDIT: Included the 'appearance tab' enter image description here

13
  • Hello. Normally this should be not a problem for qgis2web. I have never tested the variant with colored from a csv file. Maybe this is the reason. Any problems if you take the colores from the categorized shapefile? Which qgis/qgis2web version?(for windows?)
    – Jürgen
    Jan 20, 2021 at 16:01
  • Same problems, if you export only your shapefile?
    – Jürgen
    Jan 20, 2021 at 16:09
  • I've tried to export only the shapefiles, but the output is an empty map... I'm using: QGIS: 3.14.15-Pi and qgis2web: 3.16
    – johnnyarth
    Jan 21, 2021 at 18:00
  • I'm installing the previous version of QGIS, and if that doesn't work I'll try another OS (currently on windows)
    – johnnyarth
    Jan 21, 2021 at 18:01
  • Could you take a screenshot from "Appearance"? (edit your question)
    – Jürgen
    Jan 22, 2021 at 14:07

1 Answer 1

1

My teammate and I had this exact issue. It turned out to be because the attribute name used for the color classification was case-sensitive in qgis2web.

Your Answer

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

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