Marker selectors

Marker selector groups different types of markers and assigns them to a dataset.

These groups exist, because often there can be different types of points in the map - different store types, warehouses, ATMs etc., each of them represented by a different dataset.


This is the marker selector that can be found in the Retail Solution Demo's Catchment Area Analysis and Customer Intelligence views.

This marker selector groups the company's own shops, and the partner shops.

Additional syntax examples

Marker selectors can also be used in a view where no markers are present. This is a simple example of marker selector, which only takes care of granularity visibility, and filtering objects.

We set the hideGranularity property to false, because we want to see the granularity when we enter the view. However, it doesn't have to be like this in all cases. We've also set that granularity objects (areas, lines) and markers will be visible in the map, even after they're filtered out.


Another special use case marker selectors is with granularityCategories. This object can be used when setting up advanced lines visualization.

We have a dataset called roads, which contains 15 lines = roads. This dataset has (among others) these three properties: surface, road_class and traffic. We'll demonstrate the advanced line visualization on these properties.

Each category is linked to the dataset, specified by the property name, and type of the styleType.

The dataset properties have then these displayOptions, which contain the values from the data (value property):

And this is the outcome of the visualization. Also note that these 3 styles can be combined together.

Key description



array of marker categories

either categories or granularityCategories must be present

size => 1

array of granularity categories

either categories or granularityCategories must be present

size => 1
hideGranularitybooleanspecifies if the granularity should be visible or not[true, false]
keepFilteredobjectspecifies the "Keep filtered objects in the map" setting
showIndicatorValuesOnMapbooleanspecifies if indicator value for each area/grid should be displayed[true, false]
clusterMarkersbooleanspecifies if marker clustering will be enabled or disabled[true, false]



URL link to a dataset object representing the markers/rest/projects/$projectId/md/datasets?name={datasetName}
markersarrayan array of marker objects
linkedLayersarrayan array of objects specifying layers linked to the marker category

There are two rules surrounding marker selector categories to note:

  • a dataset which has available data (e.g. your stores) is always displayed as the first category, instead of a dataset with no data (e.g. competitor stores)
  • a dataset which is selected as a marker selector category is not available to be visualized as a dot map



URI link to a marker object representing marker in a category/rest/projects/$projectId/md/markers?name={markerName}

sets the default visibility of the marker

default = true

[true, false]


specifies if the marker should become visible after clicking on the category, when by default it is set to visible = false

[true, false]


The linkedLayers array contains layers that should be explicitly linked to markerSelector categories. They are represented by dwh datasets of geometryPolygon subtype, which are linked to their respective geometries defined by vt datasets.

The typcal use case is - the markers represent restaurants, and the linked layers are the restaurant's delivery zones.


URL link to a dataset object representing the linked layers/rest/projects/$projectId/md/datasets?name={datasetName}

specifies the style of the layer

[outline, outline_black, line_red_1, line_red_3, line_red_5]

visiblebooleansets the default visibility of the layer[true, false]



URL link to a dataset object representing the linked granularities/rest/projects/$projectId/md/datasets?name={datasetName}
splitPropertyNamestringdataset property, by which the marker will be filtered{datasetProperty}
styleTypestringtype of the visualization style[color, pattern, weight]



specifies if the filtered granularity objects (areas, lines...) should be visible when filtered[true, false]
markersbooleanspecifies if the filtered markers should be visible when filtered[true, false]

Visual representation

Marker selectors can be visualised as groups of markers. On this cutout, you can see 2 marker groups - orange and green, each represented by one marker selector.

You can manage the markers by clicking on the Visibility tool icon () next to the Infopanel.