fx - SIMPLE MAP SETTINGS
SimpleMaps maps Darstellung |
The values for nearly all features may be entered as calculated formulas or variables. |
For detailed information about notation in this dialogs go to chapter The fx‑editor. |
SIMPLE MAP SETTINGS |
||
---|---|---|
SETTING / VALUES |
EXPLANATION |
|
|
|
|
|
||
caption text custom name for the whole Simple Map Layer (default is "Simple Maps") |
Custom name for the Simple Map layer. |
|
active true all Simple Maps enabled (Standard) false all Simple Maps disabled |
Feature to basically enable or disable all Simple Map blocks. |
|
[ {SimpleMaps Block}, {SimpleMaps Block} ] |
After "maps": one of the two default Simple Map blocks begin. |
|
|
|
|
Simple Map Block |
||
active true this Simple Map is enabled (default) false this Simple Map is disabled |
Enables or disables this Simple Map block. |
|
coordinates Simple Marker coordinates, as well as an ID, a Name and numeric values for "KPI", "Color%" and "Size%" |
This feature is not only for setting the coordinates, but also for setting an ID, Name, KPI, Color% and Size% for a Simple Map block. The Sense formula Concat() with the qualifier DISTINCT always has to be used for dynamic entries. Aggregation functions like Sum() or Max() always have to be enclosed additionally by aggr(). Classes: Performance: Coordinates Format and Notation: ⇨ via QlikView Script ⇨ via Map File Notation of the whole feature: |
|
ID%NAME%ENCODEDPOLYLINE%KPI%COLOR; 1.A unique ID for each record/Polygon 2.Name - this field may contain any kind of information 3.Coordinates in Encoded Polyline format 4.KPI - Key Performance Indicator, for example "Sales" 5.Numeric values for automatically generated colors for Simple Map Polygones via Classes |
||
There must be no spaces between the entries and the decimal separator has to be a dot. Several Polygons (coordinates) have to be separated by semicolon (beware when loading the script): |
||
ID%NAME%ENCODEDPOLYLINE;ID%NAME%ENCODEDPOLYLINE;ID%NAME%ENCODEDPOLYLINE; Example: The whole feature in the fx-Editor looks like that: "coordinates": "1%Austria%kwn{GieyyAdHoBhHbISh[nDfFr@vN|NrRpNnD~TeEt`@nOuBrSzIz]z`@hAfY[...]", Since the code volume when entering Map coordinates directly would be much to big (in contrast to Simple Markers), this is only a theoretical example for better understanding. |
||
Instead of entering the Encoded Polylines directly, regular practice is to use Sense variables, formulas or especially fields. Example: Concat(aggr(Sum(Sales),ID)) Separator has to be a semicolon. |
||
Coordinates are inside a QlikView Field: Concat(DISTINCT ID&'%'&NAME&'%'&COORDINATES&'%'&KPI&'%'&COLOR%,';') Coordinates are loaded from a map file: Concat(DISTINCT ID&'%'&NAME&'%US_1.GEO%'&KPI&'%'&COLOR%,';') Example (only required entries): Concat( {1} DISTINCT State&'%'&''&'%'&EncodedPolylines,';') Example (with entries KPI and Color%): Concat(DISTINCT ID&'%'&State&'%'&EncodedPolylines&'%'&aggr(Sum(Sales),ID)&'%'&aggr(Sum(Sales),ID),';') The whole feature in the fx-Editor looks like that: "coordinates": "' & Concat(DISTINCT ID&'%'&State&'%'&Coordinates&'%'&aggr(Sum(Sales),ID)&'%'&aggr(Sum(Sales),ID)),';')&'", Or with a map file: "coordinates": "' & Concat(DISTINCT ID&'%'&State&'%US_1.geo%'&aggr(Sum(Sales),ID)&'%'&aggr(Sum(Sales),ID)),';')&'", |
||
You can also just copy one of the two template lines above in the expression dialog. To always display the whole Simple Map in this block, regardless of taken selections, use the Sense identifier {1} : |
||
Concat( {1} DISTINCT ID&'%'&''&'%'&COORDINATES,';') Example (only required entries): Concat( {1} DISTINCT State&'%'&''&'%'&EncodedPolylines,';') The whole feature in the fx-Editor looks like that: "coordinates": "' & Concat({1}DISTINCT ID&'%'&Name&'%'&Coordinates,';')&'", |
||
If additionally to using the identifier {1} the feature layer further below is set to "1", a Static Simple Map can be created. |
||
number order of displayed Simple Map Blocks - number beginning at 1 for top layer |
The numbers in this feature inside each Simple Map Block define their rendering order - the order in which the layers are displayed. Simple Map 1 has got order 1 and displays the US Counties (map file: "US_2.npgp" - selected is Palm Beach) |
|
caption text custom name for this Simple Map block (default is "Simple Maps 1") |
Custom name for this Simple Map block. |
|
|
|
|
Set presentation, MouseOvers (Tooltips), PopUps and Sense visualizations in PopUps for each Simple Map block. |
||
bordersize number Simple Map border size (default is 0.5) |
Polygon border size for this Simple Map in pixel. |
|
color color Simple Map fill color (default is white) |
Polygon fill color for this Simple Map. When setting colors you can use Hex-Codes, HTML color names or RGB |
|
bordercolor color Simple Map border color (default is grey) |
Polygon border color for this Simple Map. When setting colors you can use Hex-Codes, HTML color names or RGB |
|
opacity number Simple Map transparency in percent (default is 50) |
Transparency of the fill color of Markers in percent: 0% - colors are covering |
|
label content Simple Map label |
Simple Marker labels are displayed below the Simple Markers, however you can additionally configure the offset and further settings for labels in the menu area Polygon Label Settings outside this expression dialog. Basically labels contain only text, but you can also use Sense variables and formulas or these NPGeoMap #Hashtag Variables, provided in the feature coordinates above: [#Name] [#ID] [#KPI] Example: Labels can be edited with line breaks (using Chr(13)), but it is not possible to use HTML here. |
|
labelsize number Label size in pixels (default is 12) |
Label size in pixels |
|
labelcolor color Label font color (default is black) |
Label font color |
|
mouseover content Simple Map MouseOver content |
MouseOver (Tooltip) for Simple Map Polygons. [#Name] [#ID] [#KPI] Example: "mouseover": "Hello World", "mouseover": "[#Name]", Example with dynamic content: (See details about notation in chapter The fx‑editor).
Important: If you want to use local image files in HTML, you have to indicate the Sense image path - read details here. Tip: There's a CSS file "info.css" located in the NPGeoMap Extension directory (subfolder "css"), which can be customized to define the default presentation of PopUps, MouseOvers and SketchBoxes. More information about integrating Sense fields or formulas and further details on notation see chapterThe fx‑editor. |
|
popup content Simple Map PopUp content |
A PopUp is a kind of dialog or a small window, that opens or "pops up" if you click on an item (Marker, Polygons,...), for which a PopUp is defined. NPGeoMap can display text and dynamic content in a PopUp. [#Name] [#ID] [#KPI] Example: "popup": "Hello World", "popup": "[#Name]", (See details about notation in chapter The fx‑editor). In the following feature qvchart you can also add any Sense object or chart in this PopUp. The content you add at this point will appear just above the Sense visualization. Important: If you want to use local image files in HTML, you have to indicate the Sense image path - read details here. Tip: There's a CSS file "info.css" located in the NPGeoMap Extension directory (subfolder "css"), which can be customized to define the default presentation of PopUps, MouseOvers and SketchBoxes. If the feature "popupautoclose" is disabled in the Expert Settings, you may keep several PopUps open at the same time. More information about integrating Sense fields or formulas and further details on notation see chapter The fx‑editor. |
|
QV object ID Sense object ID |
Feature for displaying any Sense visualizations in the PopUp. Just fill in the Sense object ID (see screenshot on the right) of the visualization you want to use. |
|
1 static layer 2 dynamic layer (default) |
Type of layer for this Simple Map Block: 1 = static layer 2 = dynamic layer |
|
selection number type of selection (default is 2) |
Type of selection for this Simple Map Block: -1 = OFF, no selection possible |
|
listbox sense fieldname Sense fieldname used with selection type 1 |
If the feature selection above is set to 1, fill in here the fieldname of the concerning Sense field containing the selection values. |
|
class name/ID Class for automatically generated colors for Simple Map Polygons of this block (default is "EVEN_GRADIENT_COLOR") |
Name (ID) of the Class for automatically generated colors for the Simple Map Polygons of this block, configured in the expression fx - COLOR & SIZE CLASSES. EVEN_GRADIENT_COLOR EVEN_RANGE_COLOR FIXED_RANGE_COLOR QUANTILE_RANGE_COLOR Source for calculating the Classes is the field/entry "Color%" in the feature coordinates at the beginning of each Simple Map block. |