Create Web GIS layers
From AWF-Wiki
(Difference between revisions)
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
# Search and install the '''qgis2web''' plugin. | # Search and install the '''qgis2web''' plugin. | ||
# Prepare a map as a QGIS project: | # Prepare a map as a QGIS project: | ||
− | #* Set your project title, and background and highlight colours in {{mitem|text=Project --> | + | #* Set your project title, and background and highlight colours in {{mitem|text=Project --> Properties...}} |
− | #* Give your layers human-friendly names in the Layers Panel | + | #* Give your layers human-friendly names in the Layers Panel. |
− | #* Give your layer columns human friendly names via {{mitem|text=Layer --> Properties --> Fields --> Alias}} | + | #* Give your layer columns human friendly names via {{mitem|text=Layer --> Properties --> Attributes Form --> Fields --> Alias}} |
− | #* Hide the columns you don't want to appear in your popups by changing | + | #* Hide the columns you don't want to appear in your popups by changing the '''Widget Type''' to {{button|text=Hidden}} |
− | + | ||
#* Style your layers, and set their scale-dependent visibility, if required. | #* Style your layers, and set their scale-dependent visibility, if required. | ||
# Run {{mitem|text=Web --> qgis2web --> Create web map}} | # Run {{mitem|text=Web --> qgis2web --> Create web map}} | ||
− | # Click checkbox ''' | + | # Click checkbox '''Leaflet''' on. |
# In the '''Layers and groups''' tabs configure Layers and labels. | # In the '''Layers and groups''' tabs configure Layers and labels. | ||
# Click {{button|text=Update preview}}. | # Click {{button|text=Update preview}}. |
Latest revision as of 11:21, 7 June 2021
- In QGIS, select Plugins --> Manage and Install Plugins...
- Search and install the qgis2web plugin.
- Prepare a map as a QGIS project:
- Set your project title, and background and highlight colours in Project --> Properties...
- Give your layers human-friendly names in the Layers Panel.
- Give your layer columns human friendly names via Layer --> Properties --> Attributes Form --> Fields --> Alias
- Hide the columns you don't want to appear in your popups by changing the Widget Type to Hidden
- Style your layers, and set their scale-dependent visibility, if required.
- Run Web --> qgis2web --> Create web map
- Click checkbox Leaflet on.
- In the Layers and groups tabs configure Layers and labels.
- Click Update preview.
- If you are happy with the preview you may save your webmap to a local folder. In the Export tab choose a local folder. Click Export.