Scale dependent visualisation

Layers in the map view can be made visible within a defined scale range. Detailed information can be shown if the user zooms in to a small area and more overview information if the user is zoomed out to a large area.

The MinPixSize and MaxPixSize subitem parameters for the domain-unit of the layer can be used for scale dependent visualisation.

Example

unit<uint32> house
:   StorageName = "%SourceDataDir%/house.csv"
,   StorageType = "gdal.vect"
{
   parameter<float32> ZoomInLimit  :=   0.00025f, DialogType = "MinPixSize";
   parameter<float32> ZoomOutLimit := 200.0f    , DialogType = "MaxPixSize";
}

The ZoomInLimit parameter(The name of the subitem parameters have no functional meaning, but for transparency reasons it is advised to use clear names) with the property dialogtype configured to “MinPixSize”, configures the lower limit of the zoom range for all data items with house as domain unit.The ZoomOutLimit with the property DialogType configured to “MaxPixSize” configures the upper limit.

The values for these limits are configured as expressions in the metric of the coordinate system used, in the example meters. The configured parameters in the example define that this layer will be visualised if the zoom level is more than 0.00025 meter and less than 200.0 meter for one pixel.