Create a Basic Line Map

Line Maps are used to draw lines between points.

The examples below make use of a string of Lat / Long points. However, as of QM 2.6.1, polyline encoded format is supported as well. For more information on creating polyline encoded formated shapes, see here.

Create the Linestring expression in the data model

 This step is only necessary if you have to build the line from lat/lng coordinates. QlikMaps supports encoded polyline as well as WKT strings. If one of these are used this step can be skipped.

Polyline:
Load 
	OfficeName,
    'LINESTRING('&OfficeLng&' '&OfficeLat&','&SalesmanLng&' '&SalesmanLat&')' as Polyline
Resident Location;

Create a QlikMaps Object

Click the Edit button and drag the QlikMaps Chart object to the sheet.

Open the Object Editor

To edit the QlikMaps object, click the space between the map and the border at the top of the map.

Edit the Feature Layer

Select Layer 1 under the Feature Layer and select 'Line' under 'Dimension' type.

Line Dimension

Select a value from the drop-down that represents the dimension being plotted.

Line Boundaries

QlikMaps will attempt to auto-detect the boundary field associated with the chosen dimension.

If QlikMaps cannot auto-detect the boundary field, the 'Boundary' drop-downs will appear. Select the correct field from the drop-down.

Create in expression editor

Though it is advised to use polyline encoded format or load the WKT string in the script, the same basic expression created in the load script can be used in the expression editor in Sense. A few minor alterations are necessary since the Linestring expression will be used as a boundary.

='=''Linestring(''&OfficeLng&'' ''&OfficeLat&'',''&SalesmanLng&'' ''&SalesmanLat&'')'''

Advanced Features

After building a basic line map, additional modifications are possible. See below for additional help.

Configuring Polylines