Using the LayerTree plugin
Using the Layertree is pretty straightforward.
This plugin displays a tree view of the layers loaded into the map and provide some basic functionalities for layers such as:
- Enabling and Disabling visibility
- Grouping
- Ordering
The plugin also provides placeholders for other plugins, in our setup they are:
- AddLayers
- RemoveLayer
- RemoveOverlays
- AddGroup
- RemoveGroup
- GroupProperties
- LayerProperties
- ZoomToLayerExtent
- GeoNetworkSearch
Enabling and Disabling Layers
Open the previously created map training-map
Zoom in until you can see at least the Boulder streets
As you can see the streets are over the polygonal landmarks
Disable the Boulder streets checkbox clicking on it
Ordering Layers
Zoom in again until you can see at the Boulder buildings
Change the order of the layers in order to show the buildings over the landmarks
Click and drag the Boulder buildings layer name over the Boulder polygonal landmarks
Releasing the layer changes the visibility order, so now you can see the Buildings other the Landmarks
Grouping Layers
To create a new layer group:
Click on the Add a new group in the layer tree button
Write the group name (in our case is Boulder Group)
Click on the Add group button
Drag the layers Boulder polygonal landmarks and Boulder buildings over the new group to add them to it
When layers are grouped they can be enabled or disabled together
The group can also be collapsed
Showing Layer Properties
Right-clicking on a layer shows up the contextual menu with available actions.
The most relevant ones are Layer Properties and View Metadata
The About tab shows the layer name, the title displayed in the layertree and the description
The Display tab allows you to modify some layer display options, such as opacity and transparency
The format combobox let you choose the tiles image format the server should provide
The Cache tab specifies if the map should cache the layer tiles or not
The Styles tab allows you to change the layer style, choosing from a list of available styles
It also shows a little summary of the selected style