QlikMapsQlikMapsFAQ/Common ScenariosUsageHow do I customize polygon borders?

How do I customize polygon borders?

Create a Polygons / Lines QlikMaps object

Create a Polygons / Lines QlikMaps object

Select a 'Dimension' and 'Boundary / Path' field from your QlikView data model. In the example below, County is my 'Dimension' and CountyBoundary is my 'Boundary / Path'.

Modify the Feature Option expression box

Modify the Feature Option expression box

If an integer 0-100 is placed in the Feature Option box, the value controls the opacity of the polygons.

Additional visuals can be created using the the following options.

='
       "color":"'& RGB(57,147,198) &'",
       "weight":"5",
       "opacity":"50",
       "fillOpacity":".5",
       "dashArray":"5,20"
'

In the example above the values are as follows:

  • Color - Color of the border
  • Weight - Pixel Weight of the border
  • Opacity - opacity of the border
  • dashArray - How the line is formatted. The first value represents the value of the dash. The second, the value of the space between the dash.

 

The example above creates the following polygon with a blue border that is 5 pixels wide (weight) by 5 pixels long (first value of dashArray) that is divided by 20 pixels of space (second value of dashArray). The interior of the shape is set at 2% opacity (Opacity).

The example above can be found in the QlikMaps Polygon and Multilayer.qvw in the examples folder of the download site.