fx - SIMPLE
SimpleMarker coordinates Presentation |
The values for nearly all features may be entered as calculated formulas or variables. |
For detailed information about the notation in expression editors go to chapter The fx‑editor. |
SIMPLE MARKER SETTINGS |
||
---|---|---|
SETTING / VALUES |
EXPLANATION |
|
|
|
|
caption text custom name for the whole Simple Marker Layer (default is "Simple Marker") |
Custom name for the Simple Marker layer. |
|
marker [ {SimpleMarker Block}, {SimpleMarker Block} ] |
After "marker": one of the two default Simple Marker blocks begin. |
|
You can add several Simple Marker blocks by copy-paste and as well remove them again. Therefore several groups of points/Markers can be created. The individual blocks can be edited completely independently. |
||
|
|
|
Beginning of a Simple Marker or Polyline Block. You will recognize, that there are two "different" Simple Marker blocks by default. They have actually the same features, the second one is just reduced to the settings, which are available for Polylines. Features like "image", "label" or the classes can only be used with Simple Markers. Copy-paste, modify and sort the blocks as you need them. |
||
Set Coordinates for each Simple Marker block. |
||
coordinates coordinates Simple Marker (or Polyline) 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 Marker block. Always use the QlikView formula Concat() with the qualifier DISTINCT for dynamic entries. Details further below. You may also set map or polygon coordinates here, to display them as Polylines. Classes: Performance: Coordinates Format: Coordinates Notation: Example (one pair of coordinates): 48.458263, 13.463537 Notation of the whole setting: |
|
ID%NAME%LATITUDE,LONGITUDE%KPI%COLOR%SIZE; 1.A unique ID for each record/Marker 2.Name - this field may contain any kind of information 3.Coordinates for each Simple Marker, first Latitude/y-value, then Longitude/x-value - internal separated by comma, a dot as decimal separator, several coordinates separated by semicolon: 4.KPI (Key Performance Indicator, for example "Sales") - not only a variable but also the source for automatically generated colors/images and sizes of Circle Cluster and Hexagon Grid Clusters. 5.Numeric values for automatically generating a color/image for each Simple Marker via Classes 6.Numeric values for automatically generating a color/image for each Simple Marker via Classes |
||
There must be no spaces between the entries and the decimal separator has to be a dot. Several Markers (coordinates) have to be separated by semicolon (beware when loading the script): |
||
ID%NAME%LATITUDE,LONGITUDE;ID%NAME%LATITUDE,LONGITUDE;ID%NAME%LATITUDE,LONGITUDE; Example: The whole feature in the fx-Editor looks like that: "coordinates": "5%Stuttgart%48.748895, 9.183613;6%Würzburg%49.809582, 9.952656;7%Leipzig%51.337428, 12.347675;8%Bremen%53.080781, 8.788105", |
||
You can replace the components directly by the appropriate values (not the common way, only for a small number of coordinates) or by using QlikView variables, formulas or fields. Example: Concat(aggr(Sum(Sales),ID)) Separator has to be a semicolon. |
||
Concat(DISTINCT ID&'%'&NAME&'%'&COORDINATES&'%'&KPI&'%'&COLOR%&'%'&SIZE%,';') Example (only required entries): Concat(DISTINCT CustomerNumber&'%'&''&'%'&CustomerCoordinates,';') Example (including entries for KPI, Color% und Size%): Concat(DISTINCT CustomerNo&'%'&CustomerName&'%'&CustomerCOO&'%'&aggr(Sum(Sales),ID)&'%'&aggr(Sum(Sales),ID)&'%'&aggr(Sum(Sales),ID),';') The whole feature in the fx-Editor looks like that: "coordinates": "' & Concat(DISTINCT ID&'%'&Name&'%'&Latitude&','&Longitude&'%'&aggr(Sum(Sales),ID)&'%'&aggr(Sum(Sales),ID)&'%'&aggr(Sum(Sales),ID),';')&'",
Only for Polylines: Concat(DISTINCT ID&'%'&Name&'%'&polylines.txt,';') In the fx-Editor it looks like that: "coordinates": "' & Concat(DISTINCT ID&'%'&Name&'%polylines.txt',';')&'", |
||
You can also just copy one of the two template lines above in the expression dialog. To always display all available Simple Markers of the group, regardless of taken selections, use the QlikView identifier {1} : |
||
Concat( {1} DISTINCT ID&'%'&''&'%'&COORDINATES,';') Example (only required entries): Concat( {1} DISTINCT CustomerNo&'%'&''&'%'&CustomerCOO,';') 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. More Tips: |
||
Set Presentation for each Simple Marker block. |
||
caption text custom name for this Simple Marker block (default is "Simple Marker 1") available for Polylines |
Custom name for this Simple Marker block. |
|
type number Simple Marker type (default is 2) available for Polylines |
Set the Simple Marker type/shape in which Simple Markers are displayed: 0 = don't show Markers (and also don't calculate) 1 = don't show Markers, but the Labels 2 = circle (default) 7 = Heatpoint for Heatmaps 8 = Polyline (Path) The feature image further down allows to display any image instead of a circle for Simple Markers. Performance tip: Circles need the least loading time, therefore "2" is the fastest for big amounts of displayed Markers. Type "0": |
|
size number Simple Marker size (default is 8) available for Polylines (line width) |
Simple Marker Size. Use Classes for automatic generated sizes. |
|
file path file path of the image displayed as Simple Marker |
A Simple Marker can also be displayed as an image, instead of a circle - just fill in here the file path of the image you want to use. The Marker Type above has to be 2. Example (file in folder "image"): "image": "flag.png", Example (file in sub folder "demo"): "image": "demo/airplane.png", There are two options to set the size of the Simple Marker Images: oOutside this dialog in the menu area "Marker Image Settings" oor using the field Size% in the feature coordinates above A Class may also be used to display various images - more. |
|
color color Simple Marker fill color (default is orange) available for Polylines |
Simple Marker fill color. When setting colors you can use Hex-Codes, HTML color names or RGB |
|
bordercolor color Simple Marker border color (default is black) |
Simple Marker border color. When setting colors you can use Hex-Codes, HTML color names or RGB |
|
opacity number Simple Marker transparency in percent (default is 50) available for Polylines |
Transparency of the fill color of Markers in percent: 0% - colors are covering |
|
label content Simple Marker 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 "Marker Label Settings" outside this expression dialog. Basically labels contain only text, but you can use QlikView 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 Marker MouseOver content available for Polylines |
MouseOver (Tooltip) for Simple Markers. [#Name] [#ID] [#KPI] Example: "mouseover": "Hello World", "mouseover": "[#Name]", Example with dynamic content (see sceenshot on the right): (See details about notation in chapter fx‑editor).
Important: If you want to use local image files in HTML, you have to indicate the QlikView 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 QlikView fields or formulas and further details on notation see chapter fx‑Editor. |
|
content Simple Marker PopUp content available for Polylines |
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]", Some nice Examples for the coordinates variables: simple coordinates: converted coordinates: integrating GoogleMaps Streetview: Check it out! (See details about notation in chapter fx‑editor).
Further below in the following feature qvchart you can also add any QlikView object or chart in this PopUp. The content you add at this point will appear just above the QlikView visualization. Important: If you want to use local image files in HTML, you have to indicate the QlikView 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 QlikView fields or formulas and further details on notation see chapter fx‑Editor. |
|
QV object ID QlikView object ID |
Feature for displaying any QlikView visualizations in the PopUp. Just fill in the QlikView 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 Marker block: 1 = static layer 2 = dynamic layer |
|
selection number type of selection (default is 2) available for Polylines |
Type of selection for this Simple Marker block: -1 = OFF, no selection possible Enabled selections also work with active Cluster. |
|
listbox QV-listbox ID ID of the QlikView Listbox used with selection type 1 available for Polylines |
If the feature selection above is set to 1, fill in here the ID (see screenshot on the right) of the concerning QlikView Listbox. Example: "listbox": "CH09" |
|
class name/ID Class for automatically generated colors/images for Simple Markers of this block (default is "EVEN_GRADIENT_COLOR") |
Name (ID) of the Class for automatically generated colors/images for the Simple Markers 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 Marker block. |
|
sizeclass class name/ID Class for automatically generated sizes for Simple Markers of this block (default is "EVEN_GRADIENT_COLOR") |
Name (ID) of the Class for automatically generated sizes for the Simple Markers of this block, configured in the expression fx - COLOR & SIZE CLASSES. EVEN_GRADIENT_SIZE EVEN_RANGE_SIZE FIXED_RANGE_SIZE QUANTILE_RANGE_SIZE Source for calculating the Classes is the field/entry "Size%" in the feature coordinates at the beginning of each Simple Marker block. |