fx - SIMPLE
SimpleMarker coordinates 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 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. |
||
|
|
|
Set coordinates of Simple Markers for each Simple Marker block. |
||
coordinates 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 Marker 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: Coordinates Notation: Example (one pair of coordinates): 48.458263, 13.463537 Notation of the whole feature: |
|
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 Sense 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 (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),';')&'", |
||
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 Sense 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: |
||
caption text custom name for this Simple Marker block (default is "Simple Marker 1") |
Custom name for this Simple Marker block. |
|
|
|
|
Set presentation, MouseOvers (Tooltips), PopUps and Sense visualizations in PopUps for each Simple Marker block. |
||
type number Simple Marker type, number from 0 to 2 and 7 (default is 2) |
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 The feature image further down allows to display any image instead of a shape 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) |
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) |
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) |
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 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 Marker MouseOver content |
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 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 chapter The fx‑editor. |
|
content Simple Marker 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]", 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). 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. |
|
Sense object ID Sense object ID |
Feature for displaying any Sense visualizations in the PopUp, instead of a NPGeoMap Chart. Just fill in the Sense object ID of the visualization you want to use. See here a description in the Sense Manual how to get the object ID: help.qlik.com/obtain-app-object-id |
|
chartwidth number qvchart width (default is 350) |
Width for displaying Sense visualizations in a PopUp. |
|
chartheight number qvchart height (default is 200) |
Height for displaying Sense visualizations in a PopUp. |
|
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) |
Type of selection for this Simple Marker block: -1 = OFF, no selection possible Enabled selections also work with active Cluster. |
|
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/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. |