Create a QGIS style file from a legend.
1 | buildStyle(legend, outputFile)
|
legend |
A tibble with four columns as described in readLegend(). |
outputFile |
A file name to be created. It tipically has extension .qml. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.