Feature Layers - Polygon
Behind the scenes, Qlik Sense resolves the Dimensions and Expressions for QlikMaps exactly as it would for any out-of-the-box sheet chart object. It is often helpful to first build a Straight Table object before building a QlikMaps object in order to work out any data issues and problems with formulas that are unrelated to QlikMaps.
Polygon - Straight Table
An analogous straight table for a polygon layer is defined as follows:
• Dimension1: Polygon Dimension
• Dimension2: Polygon Boundaries
• Expression1: Fill Color
• Expression2: Popup Content
• Expression3: Polygon Opacity
• Expression4: Polygon Outline Color
Polygon - Dimension
Defines the polygons being plotted. This value will be selected when lassoing.
Select polygon
as the dimension type and a field from the dimension drop-down.
Calculated dimensions can be created by selecting <Use Expression>
from the drop-down. See Calculated Dimensions for syntax.
Polygon - Boundaries
QlikMaps will auto-select the boundary associated with the selected dimension.
If QlikMaps can't find an associated boundary field, a drop-down will display where a boundary field can be selected. Select a field that defines the boundary.
If you need to modify the auto-selected boundary, expand the dimension caption by clicking on it and select the gears to see the boundary field selector.
See the following for more information on obtaining boundary polygons.
Polygon - Layer Title
QlikMaps will title the layer based on the dimension name.
To provide a customized layer title, expand the dimension caption and provide a layer title. This title will display in the layer control of the map.
Polygon - Enable Dimension Tooltip
This button is off by default. Checking it will enable hover tooltips that display the dimension value over the polygon.
Polygon - Fill Color
Click on a predefined aggregation action and use the drop-down to select a metric to quickly build common expressions that will vary the color of the polygon.
The color palette can be changed by expanding the color caption and selecting a different color palette. The slider under the palette drop-down adjusts the accepted variance in the color scale.
More advanced expressions can be used by selecting <Use Expression>
from the drop-down and creating a custom expression.
- If
value
is selected, the returned expression will be evaluated by QlikMaps and colored based on the selected palette. - If
pixels
is selected, the returned expression will be evaluated as an RGB() color or HEX#.<Use Static Color>
can be selected from the drop down to force all bubbles to the same color.
Polygon - Opacity
Expand the color caption by clicking on it to see the opacity slider.
Clicking on the gear Icon allows for an expression to be used for opacity instead of the slider. The expression must be a numeric value 0-100. If left blank, opacity is set to 100.
Polygon - Popup
Defines the popup content that appears when a user clicks on a boundary.
QlikMaps automatically generates popups where possible using the feature layer dimension and color expression.
A null value of ='-'
will suppress popups on a per-row basis
Advanced popups can be created by unchecking auto generate popups and using an expression that returns HTML. Below are a few examples.
Polygon - Border
Defines the color, pattern, width and opacity of a boundary outline.
The outline color defaults to white
but can be changed by selecting an alternate color from the drop-down. An expression can also be used by selecting Expression from the drop down and using any expression that returns an RGB() value or HEX# formatted color code.
The outline pattern defaults so solid
but be changed by selecting an alternative pattern from the drop-down. An expression can also be used by selecting Expression from the drop down and using any expression that returns two numerical values separated by a comma. The first value represents the pixel length of a line segment. The second value represents the pixel length of the space between the line segments.
='5,10'
Width and opacity can also be changed using the sliders. For more granular control click the border caption and select the gears to use an expression to define the width and opacity.
- Width expects a number representing pixels wide.
-
Opacity expects a number 0-100, excluding the value
1
.1
is unavailable due to backwards compatibility issues.
Polygon - Drilling
Drilling defines a selection path for moving from one layer to another.
- In the parent drop-down select the layer drilled from
- In the Before drilling... drop-down, select how to handle the current layer when the parent layer is visible.
-
Hidden
creates the layer but hides it by default. The user can make it visible using the layer control. Note thatHidden
uses RAM and CPU even while the layer is not visible. -
Unavailable
does not process the layer. It is not visible on the map or in the layer control.Unavailable
uses NO RAM or CPU.
-
- In the After drilling... drop-down select what to do with the current layer once the count of the of the current layer is 1.
If the drop-downs are used any time a single area or point is selected, the next more granular layer will be shown. If more control over drilling is necessary, select the gears icon to show the Show/Hide Expression and Calculation Condition.
- The Show/Hide Expression can be any expression that returns either
on
orhidden
. - The Calculation Condition can be any expression that returns either
True()
orFalse()
.
Advanced Settings
Polygon - Page Height
Page height is only displayed if the advanced settings box is checked under map settings.
Page height adjusts the number of features loaded on to a single layer at a time. The result will be the defined number of features (Points or Polygons) being loaded on to the map, and then more of the same number of features, until the cube height is reached.
Polygon - Cube Height
Cube height is only displayed if the advanced settings box is checked under map settings.
Cube height adjusts the maximum number of features to be loaded on to the map per layer.
Cube height needs to be an exact multiple of page height.