My table looks like this:

enter image description here

I’ve already done a Choropleth map with the first attribute of my table.

enter image description here

I would like to do the same Choropleth map with the rest of my attributes. I can’t replicate it manually because I have lots of attributes in my table.

Is there any possible way I could make a dynamic map where I select the category and the map gets coloured by that category? Qgis2web, Atlas?

  • 2
    You picture is a Choropleth map not a heat map en.wikipedia.org/wiki/Choropleth_map vs Heatmap qgistutorials.com/en/docs/3/creating_heatmaps.html – Mapperz Nov 7 '19 at 15:00
  • maybe you can edit your question and not use the phrase "heatmap", then it is easier to answer – Jakob Miksch Nov 7 '19 at 15:08
  • You are right, i'm going to change it – Sofia R Nov 7 '19 at 16:01
  • Welcome @SofiaR ! How do you want to select the category in the map? Splitting fields into related tables is an option? – Gabriel De Luca Nov 7 '19 at 21:34
  • Thank you @GabrielDeLuca! Yes, it's a possible option. My table has 43 categories. I Just need the easiest way to make a choropleth map with all the categories. I wouldn't like to duplicate and style the layer for all of 43 categories. I am searching for a most convinient way to do it in order to export it in Qgis2web or Atlas or another. – Sofia R Nov 12 '19 at 19:55

You can create multiple styles per layer, and switch between them. In the Layer Styling panel, click on the Style Manager icon, and then use the + button to add each style.

The Style Manager in the Layer Styling panel

Each different style that you add can use a categorized (or graduated) renderer, each one categorizing on a different one of your fields. You can then switch between them by selecting the appropriate style in the Style Manager.

  • That is very useful, i didn’t know it was possible. Do you know if I can export that map with multiple styles using Qgis2web? I want users to be able to switch between the different categories. I’ve tried but i just couldn’t do it. My intuition is that i would have to replicate the layer multiple times and add a different style to each one. – Sofia R Nov 12 '19 at 19:24
  • I'm afraid that's not supported in qgis2web. A way to achieve it would be to duplicate your whole layer for each catogorization, and apply each of the different categorized styles to those layers. That should export to qgis2web. – Tom Chadwin Nov 13 '19 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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