
QGIS 2 Cookbook
By :

Sometimes, the best way to share a map is to build a website with a map embedded in it. There are many methods to accomplish this goal, ranging from a simple dump of a few layers to a highly-interactive map, which is based on web services. There are many web clients that will work with standard OGC services. This recipe will show you how to build a simple web map using Leaflet—a popular JavaScript library that is used to create web maps.
You will need the qgis2leaf plugin and some sample data. The schools_wake.shp
(Points) and census_wake_2000.shp
files make for a good example.
Install and enable the qgis2leaf plugin.
Make sure to check out the qgis2web plugin, which is a newer variant that works similarly but has some different options.
Load up some layers to make a map composition.
Make a copy of your layer and eliminate unnecessary columns that you don't need to show on the web map. Reducing the size of the attribute table will make it...
Change the font size
Change margin width
Change background colour