...
Description | Layer snippet | Thumbs | |||||
---|---|---|---|---|---|---|---|
How do I filter a layer to only certain features?
Change the counties layer to include - see the Layer snippet -->
Please note this is different to only drawing certain features as it is like having a subquery. |
|
| |||||
How do I filter a layer to only draw certain features based on a field value?Change the mainplaces Layer - see the Layer snippet -->
Have &Layer=mainplaces in the URL. |
| ||||||
How do I filter a layer to draw certain features in different styles based on a field value?Change the mainplaces Layer - see the Layer snippet -->
Have &Layer=mainplaces in the URL. |
|
Advanced Scaled
...
Symbology
Description | Layer snippet | Thumbs | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Variable points styles depending on the scale of the map |
|
| ||||||||||
A little more complexity, if boundaries are too complex then transform the geometries (GEOMTRANSFORM) to their centroids at a certain scale Other options include (from MapServer site) GEOMTRANSFORM [bbox|end|labelpnt|labelpoly|start|vertices|<expression>] Used to indicate that the current feature will be transformed before the actual style is applied. Introduced in version 5.4.
|
|
|
Clusters - Advanced Styling
Description | Snippet | Thumb | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CLUSTERS This layer is combined with the hw_road_accidents layer it is purely for display purposes highlighting some of the advanced functionality of MapServer
Note the class Accident Clusters in the layer hw_road_accidents - the second class isn't used for map display (due to MAXSCALEDENOM) but is here for the GetLegendGraphic request |
|
|
NHS Choices
Description | Snippet | Thumb | ||
---|---|---|---|---|
Dentists |
| |||
Doctors |
| |||
Hospitals |
| |||
Opticians |
| |||
Pharmacies |
|
Legend Graphics
- Rely on NAME entry on CLASS
- If no NAME entry then ignored - extremely powerful
...