Skip to content

Written for: For developers

map operations

17 min read · Updated 23 Nov 2026

Reference for @astrato-io/visualizations@0.11.0.

All visualization types

Use each schema below for the request’s payload, not for the whole operation request. Names and payloads are specific to this visualization type. An operation can still require particular fields or chart state; see its description.

Add layer

Add a named layer with its default settings at index 0. Returns the new layer ID in data.id. Data layers start without field bindings.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["map", "point", "image", "heatMap", "shape", "pointConnection"]
},
"name": {
"type": "string",
"minLength": 1
}
},
"required": ["type", "name"],
"additionalProperties": false,
"title": "Add map layer"
}

Add map layer grouping range

Append a default point-cluster styling range. Read getMapLayerGrouping for its index. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["layer"],
"additionalProperties": false,
"title": "Add map layer grouping range"
}

Add map layer heat color range

Append a default heat color range. Read getMapLayerHeat for its index. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["layer"],
"additionalProperties": false,
"title": "Add map layer heat color range"
}

Add layer measure filter

Use the same filter contract as other charts, scoped to this layer. measureName accepts a unique visible name or the data item ID returned by getMapLayerMeasures. Measure filters run before aggregation; result filters run after aggregation.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": [
"equals",
"doesNotEqual",
"greaterThan",
"lessThan",
"greaterThanOrEqualTo",
"lessThanOrEqualTo",
"contains",
"excludes",
"like",
"notLike",
"startsWith",
"endsWith"
],
"description": "Filter operator that requires a value"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "value", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": ["isBetween", "isNotBetween"],
"description": "Filter operator that requires valueFrom and valueTo"
},
"valueFrom": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Lower filter value"
},
"valueTo": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Upper filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "valueFrom", "valueTo", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": ["inList", "excludedFromList"],
"description": "Filter operator that requires a list of values"
},
"values": {
"minItems": 1,
"type": "array",
"items": {
"type": "string"
},
"description": "Filter values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "values", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": ["isNull", "notNull"],
"description": "Filter operator that does not require values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "layer"],
"additionalProperties": false
}
],
"title": "Add layer measure filter"
}

Add layer result filter

Use the same filter contract as other charts, scoped to this layer. measureName accepts a unique visible name or the data item ID returned by getMapLayerMeasures. Measure filters run before aggregation; result filters run after aggregation.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": [
"equals",
"doesNotEqual",
"greaterThan",
"lessThan",
"greaterThanOrEqualTo",
"lessThanOrEqualTo",
"contains",
"excludes",
"like",
"notLike",
"startsWith",
"endsWith"
],
"description": "Filter operator that requires a value"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "value", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": ["isBetween", "isNotBetween"],
"description": "Filter operator that requires valueFrom and valueTo"
},
"valueFrom": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Lower filter value"
},
"valueTo": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Upper filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "valueFrom", "valueTo", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": ["inList", "excludedFromList"],
"description": "Filter operator that requires a list of values"
},
"values": {
"minItems": 1,
"type": "array",
"items": {
"type": "string"
},
"description": "Filter values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "values", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": ["isNull", "notNull"],
"description": "Filter operator that does not require values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "layer"],
"additionalProperties": false
}
],
"title": "Add layer result filter"
}

Add layer supporting measure

Add a supporting measure using the same sourceKind, field key and aggregation conventions as other charts.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"sourceKind": {
"type": "string",
"const": "field",
"description": "Raw database field from available data `fields`."
},
"key": {
"type": "string",
"description": "Engine key of the item to be added as a measure, eg. \"[Cars].[Horsepower]\""
},
"aggregation": {
"type": "string",
"description": "Required for raw database fields. Use one of the aggregation names returned for that field."
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["sourceKind", "key", "aggregation", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"sourceKind": {
"type": "string",
"const": "measure",
"description": "Predefined/user-defined measure from available data `measures`."
},
"key": {
"type": "string",
"description": "Engine key of the item to be added as a measure, eg. \"[Cars].[Horsepower]\""
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["sourceKind", "key", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"sourceKind": {
"type": "string",
"const": "calculation",
"description": "Predefined calculation from available data `measures`."
},
"key": {
"type": "string",
"description": "Engine key of the item to be added as a measure, eg. \"[Cars].[Horsepower]\""
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["sourceKind", "key", "layer"],
"additionalProperties": false
}
],
"title": "Add map layer supporting measure"
}

Layer measure aggregation

Change aggregation using the data item internal key and unique signature. The aggregation must be supported by the selected available field.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
},
"aggregation": {
"type": "string",
"minLength": 1,
"description": "Aggregation function to be used for the measure"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "aggregation", "layer"],
"additionalProperties": false,
"title": "Layer measure aggregation"
}

changeMapLayerSupportingMeasureAggregation

Section titled “changeMapLayerSupportingMeasureAggregation”

Layer supporting measure aggregation

Change aggregation using the data item internal key and unique signature. The aggregation must be supported by the selected available field.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
},
"aggregation": {
"type": "string",
"minLength": 1,
"description": "Aggregation function to be used for the measure"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "aggregation", "layer"],
"additionalProperties": false,
"title": "Layer supporting measure aggregation"
}

Clear layer measure filter

Use the same filter contract as other charts, scoped to this layer. measureName accepts a unique visible name or the data item ID returned by getMapLayerMeasures. Measure filters run before aggregation; result filters run after aggregation.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label. Omit to clear all filters on the measure."
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "layer"],
"additionalProperties": false,
"title": "Clear layer measure filter"
}

Clear layer result filter

Use the same filter contract as other charts, scoped to this layer. measureName accepts a unique visible name or the data item ID returned by getMapLayerMeasures. Measure filters run before aggregation; result filters run after aggregation.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "layer"],
"additionalProperties": false,
"title": "Clear layer result filter"
}

Duplicate layer

Duplicate a layer immediately after the original. A blank or omitted name keeps the original name. Returns the copy ID in data.id.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"name": {
"type": "string"
}
},
"required": ["layer"],
"additionalProperties": false,
"title": "Duplicate map layer"
}

Remove layer

Remove a layer by ID or exact name. Duplicate names require an ID from getMapLayers.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["layer"],
"additionalProperties": false,
"title": "Remove map layer"
}

Remove map layer coloring gradient field

Clear the explicit gradient field. Preserves the coloring type. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["layer"],
"additionalProperties": false,
"title": "Remove map layer coloring gradient field"
}

Remove layer dimension

Remove a dimension using the internal key and unique signature returned by getMapLayerDimensions. Remove the destination before removing the origin of a point connection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be removed"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be removed"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "layer"],
"additionalProperties": false,
"title": "Remove map layer dimension"
}

Remove map layer grouping range

Remove a point-cluster styling range by its zero-based index from getMapLayerGrouping. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "index"],
"additionalProperties": false,
"title": "Remove map layer grouping range"
}

Remove map layer heat color range

Remove a heat color range by its zero-based index from getMapLayerHeat. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "index"],
"additionalProperties": false,
"title": "Remove map layer heat color range"
}

Remove layer measure

Remove a layer measure using the internal key and unique signature returned by getMapLayerMeasures. Its geographic or value role is cleared too.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be removed"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be removed"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "layer"],
"additionalProperties": false,
"title": "Remove map layer measure"
}

Remove layer supporting measure

Remove a supporting measure using its internal key and unique signature.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be removed"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be removed"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "layer"],
"additionalProperties": false,
"title": "Remove map layer supporting measure"
}

Rename layer

Rename a layer selected by ID or exact name. IDs remain unchanged when layers are renamed.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"name": {
"type": "string",
"minLength": 1
}
},
"required": ["layer", "name"],
"additionalProperties": false,
"title": "Rename map layer"
}

Move layer

Move a layer to a zero-based index in the current layer list. Read getMapLayers to inspect the order.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Destination index in the layer list, starting at 0. Must be smaller than the layer count."
}
},
"required": ["layer", "index"],
"additionalProperties": false,
"title": "Reorder map layer"
}

Map latitude

Set the configured map center latitude.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"description": "Latitude of the map",
"title": "Set map latitude"
}

Set map layer api key

Set the API key for the Here tile provider. Supported layer types: Map.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"apiKey": {
"description": "API key for the map provider",
"type": "string"
}
},
"required": ["layer", "apiKey"],
"additionalProperties": false,
"title": "Set map layer api key"
}

Set map layer arrow position

Set the arrowhead position along a connection from 0 (origin) to 1 (destination). Supported layer types: PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"position": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Position of the arrow"
}
},
"required": ["layer", "position"],
"additionalProperties": false,
"title": "Set map layer arrow position"
}

Set map layer arrow show

Show or hide connection arrowheads. Supported layer types: PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"show": {
"type": "boolean",
"description": "Whether to show the arrow on the connection layer"
}
},
"required": ["layer", "show"],
"additionalProperties": false,
"title": "Set map layer arrow show"
}

Set map layer arrow size

Set connection arrowhead size in pixels. Supported layer types: PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"size": {
"type": "number",
"minimum": 1,
"maximum": 40,
"description": "Size of the arrow"
}
},
"required": ["layer", "size"],
"additionalProperties": false,
"title": "Set map layer arrow size"
}

setMapLayerColoringCategoricalColorTransparency

Section titled “setMapLayerColoringCategoricalColorTransparency”

Set map layer coloring categorical color transparency

Set categorical transparency from 0 (opaque) to 1 (transparent). Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"categoricalColorTransparency": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": ["layer", "categoricalColorTransparency"],
"additionalProperties": false,
"title": "Set map layer coloring categorical color transparency"
}

Set map layer coloring categorical field

Select a categorical color field using an external engine key. Sets categorical coloring. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"key": {
"type": "string",
"minLength": 1
}
},
"required": ["layer", "key"],
"additionalProperties": false,
"title": "Set map layer coloring categorical field"
}

Set map layer coloring color

Set the single layer color. Null restores the default. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"color": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}
},
"required": ["layer", "color"],
"additionalProperties": false,
"title": "Set map layer coloring color"
}

Set map layer coloring custom gradient

Replace the full custom gradient and activate it in the same operation. Requires gradient coloring. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"colors": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
}
}
},
"required": ["layer", "colors"],
"additionalProperties": false,
"title": "Set map layer coloring custom gradient"
}

Set map layer coloring custom palette

Replace the full custom categorical palette and activate it in the same operation. Requires categorical coloring. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"colors": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
}
}
},
"required": ["layer", "colors"],
"additionalProperties": false,
"title": "Set map layer coloring custom palette"
}

Set map layer coloring gradient auto

Use automatic gradient limits when enabled, or stored minimum and maximum limits when disabled. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"gradientAuto": {
"description": "Automatically determine gradient limits",
"type": "boolean"
}
},
"required": ["layer", "gradientAuto"],
"additionalProperties": false,
"title": "Set map layer coloring gradient auto"
}

Set map layer coloring gradient field

Select a gradient field using an external engine key and a supported aggregation. Sets gradient coloring. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Engine key of the item to be added as a measure, eg. \"[Cars].[Horsepower]\""
},
"sourceKind": {
"type": "string",
"const": "field",
"description": "Gradient field selection always uses a raw database field."
},
"aggregation": {
"type": "string",
"description": "Aggregation function to use for the selected field."
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["key", "sourceKind", "aggregation", "layer"],
"additionalProperties": false,
"title": "Set map layer coloring gradient field"
}

Set map layer coloring gradient max

Set the gradient maximum using a number or numeric variable binding. Applies when gradientAuto is false. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"gradientMax": {
"description": "Maximum value for gradient",
"anyOf": [
{
"type": "number"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
}
},
"required": ["layer", "gradientMax"],
"additionalProperties": false,
"title": "Set map layer coloring gradient max"
}

Set map layer coloring gradient min

Set the gradient minimum using a number or numeric variable binding. Applies when gradientAuto is false. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"gradientMin": {
"description": "Minimum value for gradient",
"anyOf": [
{
"type": "number"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
}
},
"required": ["layer", "gradientMin"],
"additionalProperties": false,
"title": "Set map layer coloring gradient min"
}

Set map layer coloring measure aggregation

Change the aggregation of the explicit gradient field. Select a gradient field first. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"aggregation": {
"type": "string",
"minLength": 1
}
},
"required": ["layer", "aggregation"],
"additionalProperties": false,
"title": "Set map layer coloring measure aggregation"
}

Set map layer coloring overwrites

Replace conditional value colors. Empty overwrites clears them. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"overwrites": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"dimension": {
"description": "Sankey only, where it is required: the dimension whose values are compared. Other charts match the value against every dimension of a mark and refuse a dimension",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false
},
"color": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
},
"operator": {
"description": "How the dimension value is compared; defaults to equals. contains, startsWith and endsWith compare text, greater and less compare numbers",
"type": "string",
"enum": [
"equals",
"contains",
"startsWith",
"endsWith",
"greater",
"less",
"greater-equals",
"less-equals"
]
},
"value": {
"description": "Value to compare against",
"type": ["string", "number"]
}
},
"required": ["color", "value"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"dimension": {
"description": "Sankey only, where it is required: the dimension whose values are compared. Other charts match the value against every dimension of a mark and refuse a dimension",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false
},
"color": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
},
"operator": {
"type": "string",
"const": "between",
"description": "Matches numeric values from value (inclusive) up to secondValue (exclusive)"
},
"value": {
"description": "Lower bound of the range",
"type": ["string", "number"]
},
"secondValue": {
"description": "Upper bound of the range",
"type": ["string", "number"]
}
},
"required": ["color", "operator", "value", "secondValue"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"dimension": {
"description": "Sankey only, where it is required: the dimension whose values are compared. Other charts match the value against every dimension of a mark and refuse a dimension",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false
},
"color": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
},
"operator": {
"type": "string",
"enum": ["inList", "notInList"],
"description": "Match (inList) or exclude (notInList) every value in values"
},
"values": {
"minItems": 1,
"type": "array",
"items": {
"type": ["string", "number"]
},
"description": "Values to match"
},
"delimiter": {
"description": "Separator the values are stored with; defaults to \",\". No value may contain it",
"type": "string",
"minLength": 1
}
},
"required": ["color", "operator", "values"],
"additionalProperties": false
}
]
},
"description": "Ordered list of value colors; the first matching entry wins. An empty list removes them all"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["overwrites", "layer"],
"additionalProperties": false,
"title": "Set map layer coloring overwrites"
}

Set map layer coloring palette

Apply a built-in palette name or theme palette label, such as “theme palette 2”. Null restores the theme default. Requires categorical or gradient coloring. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"palette": {
"description": "Palette identifier",
"type": ["string", "null"]
}
},
"required": ["layer", "palette"],
"additionalProperties": false,
"title": "Set map layer coloring palette"
}

Set map layer coloring parameter

Set a parameter override on the coloring field. A null value clears the override. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"variableName": {
"type": "string",
"minLength": 1
},
"value": {
"anyOf": [
{
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
{
"anyOf": [
{
"type": "number"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
{
"anyOf": [
{
"type": "boolean"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
}
]
}
},
"required": ["value"],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": ["layer", "variableName", "value"],
"additionalProperties": false,
"title": "Set map layer coloring parameter"
}

Set map layer coloring persistent colors

Enable or disable keeping categorical colors linked to their values. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"persistentColors": {
"description": "Enable persistent colors",
"type": "boolean"
}
},
"required": ["layer", "persistentColors"],
"additionalProperties": false,
"title": "Set map layer coloring persistent colors"
}

Set map layer coloring rules

Replace measure color rules using measure internal keys and unique signatures from the layer getters. Empty rules clears them. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"rules": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"measure": {
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"description": "Measure whose value is compared"
},
"color": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
},
"operator": {
"type": "string",
"enum": ["equals", "not-equals", "greater", "less", "greater-equals", "less-equals"],
"description": "How the measure value is compared"
},
"value": {
"description": "Value to compare against",
"type": ["string", "number"]
}
},
"required": ["measure", "color", "operator", "value"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measure": {
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"description": "Measure whose value is compared"
},
"color": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
},
"operator": {
"type": "string",
"const": "between",
"description": "Matches measure values from value to secondValue, both inclusive"
},
"value": {
"description": "Lower bound of the range",
"type": ["string", "number"]
},
"secondValue": {
"description": "Upper bound of the range",
"type": ["string", "number"]
}
},
"required": ["measure", "color", "operator", "value", "secondValue"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measure": {
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"description": "Measure whose value is compared"
},
"color": {
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
},
"operator": {
"type": "string",
"enum": ["inList", "notInList"],
"description": "Match (inList) or exclude (notInList) every value in values"
},
"values": {
"minItems": 1,
"type": "array",
"items": {
"type": ["string", "number"]
},
"description": "Values to match"
},
"delimiter": {
"description": "Separator the values are stored with; defaults to \",\". No value may contain it",
"type": "string",
"minLength": 1
}
},
"required": ["measure", "color", "operator", "values"],
"additionalProperties": false
}
]
},
"description": "Ordered list of measure color rules; the first matching rule wins. An empty list removes them all"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["rules", "layer"],
"additionalProperties": false,
"title": "Set map layer coloring rules"
}

Set map layer coloring type

Select single, categorical or gradient coloring. Changing type clears the selected coloring field. Supported layer types: Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"type": {
"type": "string",
"enum": ["single", "categorical", "gradient"]
}
},
"required": ["layer", "type"],
"additionalProperties": false,
"title": "Set map layer coloring type"
}

Set layer dimension

Set or replace a layer dimension using an available field key. Point connection layers have origin (0) and destination (1) slots; other data layers have only slot 0.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Engine key of the field to be added as a dimension, eg. \"[Cars].[Horsepower]\""
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"index": {
"description": "Dimension slot: 0 by default; 1 is the destination dimension of a point connection layer.",
"type": "number",
"minimum": 0,
"maximum": 1,
"multipleOf": 1
}
},
"required": ["key", "layer"],
"additionalProperties": false,
"title": "Set map layer dimension"
}

Set map layer enable selection on click

Enable or disable selecting layer marks by clicking them. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"enableSelectionOnClick": {
"description": "Whether the selection on click is enabled",
"type": "boolean"
}
},
"required": ["layer", "enableSelectionOnClick"],
"additionalProperties": false,
"title": "Set map layer enable selection on click"
}

Set map layer geo intersect

Enable or disable geographic intersection filtering for the shape layer. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"enabled": {
"type": "boolean"
}
},
"required": ["layer", "enabled"],
"additionalProperties": false,
"title": "Set map layer geo intersect"
}

Set map layer geo simplify enabled

Enable or disable geographic simplification on the Geo measure. Configure that measure first. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"enabled": {
"type": "boolean"
}
},
"required": ["layer", "enabled"],
"additionalProperties": false,
"title": "Set map layer geo simplify enabled"
}

Set map layer geo simplify tolerance

Set geographic simplification tolerance on the Geo measure. Configure that measure first. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"tolerance": {
"type": "number"
}
},
"required": ["layer", "tolerance"],
"additionalProperties": false,
"title": "Set map layer geo simplify tolerance"
}

Set map layer grouping aggregation

Select how the size measure is aggregated for point clusters. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"aggregation": {
"type": "string",
"enum": ["count", "sum", "min", "max", "avg"]
}
},
"required": ["layer", "aggregation"],
"additionalProperties": false,
"title": "Set map layer grouping aggregation"
}

Set map layer grouping enabled

Enable or disable point clustering. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"enabled": {
"type": "boolean",
"description": "Whether the grouping is enabled"
}
},
"required": ["layer", "enabled"],
"additionalProperties": false,
"title": "Set map layer grouping enabled"
}

Set map layer grouping range color

Set the color of a point-cluster styling range. Null restores the default color. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"color": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
],
"description": "Color of the range"
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "color", "index"],
"additionalProperties": false,
"title": "Set map layer grouping range color"
}

Set map layer grouping range operator

Set the comparison operator of a point-cluster styling range. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"operator": {
"type": "string",
"enum": ["greater", "less", "greater-equals", "less-equals"]
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "operator", "index"],
"additionalProperties": false,
"title": "Set map layer grouping range operator"
}

Set map layer grouping range size

Set the symbol size of a point-cluster styling range. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"size": {
"type": "number",
"description": "Size of the range"
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "size", "index"],
"additionalProperties": false,
"title": "Set map layer grouping range size"
}

Set map layer grouping range value

Set the threshold value of a point-cluster styling range. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"value": {
"type": "number",
"description": "Value of the range"
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "value", "index"],
"additionalProperties": false,
"title": "Set map layer grouping range value"
}

Set map layer heat blur

Set heat point blur. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"blur": {
"type": "number",
"minimum": 15,
"maximum": 70,
"description": "Blur of the heat map"
}
},
"required": ["layer", "blur"],
"additionalProperties": false,
"title": "Set map layer heat blur"
}

Set map layer heat change heat when zooming

Enable or disable updating heat intensity when zooming. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"changeHeatWhenZooming": {
"type": "boolean",
"description": "Whether to change the heat when zooming"
}
},
"required": ["layer", "changeHeatWhenZooming"],
"additionalProperties": false,
"title": "Set map layer heat change heat when zooming"
}

Set map layer heat color range color

Set the color of a heat color range. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"color": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
],
"description": "Color of the color range"
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "color", "index"],
"additionalProperties": false,
"title": "Set map layer heat color range color"
}

Set map layer heat color range value

Set a heat color threshold. Relative ranges accept values from 0 to 100. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"value": {
"type": "number"
},
"index": {
"type": "number",
"minimum": 0,
"multipleOf": 1,
"description": "Zero-based index from the corresponding layer settings getter."
}
},
"required": ["layer", "value", "index"],
"additionalProperties": false,
"title": "Set map layer heat color range value"
}

Set map layer heat max zoom

Set the heat maximum zoom parameter. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"maxZoom": {
"type": "number",
"minimum": 0,
"maximum": 18,
"description": "Max zoom of the heat map"
}
},
"required": ["layer", "maxZoom"],
"additionalProperties": false,
"title": "Set map layer heat max zoom"
}

Set map layer heat radius

Set the heat point radius in pixels. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"radius": {
"type": "number",
"minimum": 1,
"maximum": 70,
"description": "Radius of the heat map"
}
},
"required": ["layer", "radius"],
"additionalProperties": false,
"title": "Set map layer heat radius"
}

Set map layer heat relative ranges

Use percentage thresholds for heat color ranges when enabled, or absolute values when disabled. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"relativeRanges": {
"type": "boolean",
"description": "Whether to use relative ranges for the heat map"
}
},
"required": ["layer", "relativeRanges"],
"additionalProperties": false,
"title": "Set map layer heat relative ranges"
}

Set map layer heat use custom ranges

Enable or disable custom heat color ranges. Preserves stored ranges. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"useCustomRanges": {
"type": "boolean",
"description": "Whether to use custom ranges for the heat map"
}
},
"required": ["layer", "useCustomRanges"],
"additionalProperties": false,
"title": "Set map layer heat use custom ranges"
}

Set map layer heat value

Set fixed heat intensity from 0 to 1. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"value": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Fixed value of the measure"
}
},
"required": ["layer", "value"],
"additionalProperties": false,
"title": "Set map layer heat value"
}

Set map layer heat value max value

Set the maximum input measure value for custom heat intensity limits. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"maxValue": {
"description": "Maximum value of the measure when custom",
"type": "number"
}
},
"required": ["layer", "maxValue"],
"additionalProperties": false,
"title": "Set map layer heat value max value"
}

Set map layer heat value min value

Set the minimum input measure value for custom heat intensity limits. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"minValue": {
"description": "Minimum value of the measure when custom",
"type": "number"
}
},
"required": ["layer", "minValue"],
"additionalProperties": false,
"title": "Set map layer heat value min value"
}

Set map layer heat value range

Select automatic or custom limits for measure-based heat intensity. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"range": {
"type": "string",
"enum": ["auto", "custom"],
"description": "Range of the measure (auto or custom)"
}
},
"required": ["layer", "range"],
"additionalProperties": false,
"title": "Set map layer heat value range"
}

Set map layer heat value type

Select fixed or measure-based heat intensity. Measure-based intensity uses the measure role from getMapLayerLocation. Supported layer types: HeatMap.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"type": {
"type": "string",
"enum": ["fixed", "byMeasure"],
"description": "Type of value for the measure (fixed or by measure)"
}
},
"required": ["layer", "type"],
"additionalProperties": false,
"title": "Set map layer heat value type"
}

Set map layer image

Set the image reference using a URL, media item or variable. Null clears it. Supported layer types: Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"image": {
"type": "object",
"properties": {
"imageUrl": {
"description": "Image URL",
"type": ["string", "null"]
},
"mediaItemId": {
"description": "Media item ID",
"type": ["string", "null"]
},
"imageVariable": {
"description": "Variable with image source",
"type": ["string", "null"]
}
},
"additionalProperties": false
}
},
"required": ["layer", "image"],
"additionalProperties": false,
"title": "Set map layer image"
}

Set map layer image bottom right latitude

Set the latitude of the bottom-right image corner. Supported layer types: Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"bottomRightLatitude": {
"type": "number",
"description": "Bottom right corner latitude of the image"
}
},
"required": ["layer", "bottomRightLatitude"],
"additionalProperties": false,
"title": "Set map layer image bottom right latitude"
}

Set map layer image bottom right longitude

Set the longitude of the bottom-right image corner. Supported layer types: Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"bottomRightLongitude": {
"type": "number",
"description": "Bottom right corner longitude of the image"
}
},
"required": ["layer", "bottomRightLongitude"],
"additionalProperties": false,
"title": "Set map layer image bottom right longitude"
}

Set map layer image top left latitude

Set the latitude of the top-left image corner. Supported layer types: Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"topLeftLatitude": {
"type": "number",
"description": "Top left corner latitude of the image"
}
},
"required": ["layer", "topLeftLatitude"],
"additionalProperties": false,
"title": "Set map layer image top left latitude"
}

Set map layer image top left longitude

Set the longitude of the top-left image corner. Supported layer types: Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"topLeftLongitude": {
"type": "number",
"description": "Top left corner longitude of the image"
}
},
"required": ["layer", "topLeftLongitude"],
"additionalProperties": false,
"title": "Set map layer image top left longitude"
}

Set map layer label backdrop color

Set the label backdrop color. Null restores the default color. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"backdropColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}
},
"required": ["layer", "backdropColor"],
"additionalProperties": false,
"title": "Set map layer label backdrop color"
}

Set map layer label color type

Select whether custom colors apply to label text or its backdrop. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"colorType": {
"type": "string",
"enum": ["text", "backdrop"]
}
},
"required": ["layer", "colorType"],
"additionalProperties": false,
"title": "Set map layer label color type"
}

Set map layer label density

Select layer label density. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"density": {
"type": "number",
"enum": [1, 2, 3]
}
},
"required": ["layer", "density"],
"additionalProperties": false,
"title": "Set map layer label density"
}

Set map layer label enabled

Show or hide layer labels. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"enabled": {
"type": "boolean"
}
},
"required": ["layer", "enabled"],
"additionalProperties": false,
"title": "Set map layer label enabled"
}

Set map layer label font size

Set label font size in pixels using a number or numeric variable binding. Null restores the default. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"fontSize": {
"anyOf": [
{
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
}
},
"required": ["layer", "fontSize"],
"additionalProperties": false,
"title": "Set map layer label font size"
}

Set map layer label is colored

Enable or disable custom layer label colors. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"isColored": {
"type": "boolean"
}
},
"required": ["layer", "isColored"],
"additionalProperties": false,
"title": "Set map layer label is colored"
}

Set map layer label max length

Set the maximum label length using a positive integer or numeric variable binding. Null restores the default. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"maxLength": {
"anyOf": [
{
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
{
"type": "null"
}
]
}
},
"required": ["layer", "maxLength"],
"additionalProperties": false,
"title": "Set map layer label max length"
}

Set map layer label text color

Set the label text color. Null restores the default color. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"textColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}
},
"required": ["layer", "textColor"],
"additionalProperties": false,
"title": "Set map layer label text color"
}

Set map layer legend color

Set legend label color. Null restores the default. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"color": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}
},
"required": ["layer", "color"],
"additionalProperties": false,
"title": "Set map layer legend color"
}

Set map layer legend custom max size

Enable or disable a custom maximum legend size. Preserves the stored size. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"customMaxSize": {
"description": "Whether to use custom maximum size for the legend",
"type": "boolean"
}
},
"required": ["layer", "customMaxSize"],
"additionalProperties": false,
"title": "Set map layer legend custom max size"
}

Set map layer legend custom offset

Enable or disable a custom legend offset. Preserves the stored offset. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"customOffset": {
"description": "Whether to use custom offset for the legend",
"type": "boolean"
}
},
"required": ["layer", "customOffset"],
"additionalProperties": false,
"title": "Set map layer legend custom offset"
}

Set map layer legend enabled

Show or hide the shape layer legend. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"enabled": {
"type": "boolean",
"description": "Enable legend"
}
},
"required": ["layer", "enabled"],
"additionalProperties": false,
"title": "Set map layer legend enabled"
}

Set map layer legend font size

Set legend label font size in pixels. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"fontSize": {
"type": "number",
"minimum": 1,
"maximum": 50
}
},
"required": ["layer", "fontSize"],
"additionalProperties": false,
"title": "Set map layer legend font size"
}

Set map layer legend max size

Set the custom maximum legend size in pixels. Null restores the default. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"maxSize": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "null"
}
],
"description": "Maximum size of the legend"
}
},
"required": ["layer", "maxSize"],
"additionalProperties": false,
"title": "Set map layer legend max size"
}

Set map layer legend offset

Set the custom legend offset in pixels. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"offset": {
"description": "Offset of the legend from the map edges",
"type": "number"
}
},
"required": ["layer", "offset"],
"additionalProperties": false,
"title": "Set map layer legend offset"
}

Set map layer legend position

Select the legend position within the map. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"position": {
"description": "Legend position",
"type": "string",
"enum": ["top", "right", "left", "bottom-left", "bottom-center", "bottom-right"]
}
},
"required": ["layer", "position"],
"additionalProperties": false,
"title": "Set map layer legend position"
}

Set map layer legend title

Set the legend title. Null disables the title. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"title": {
"type": ["string", "null"]
}
},
"required": ["layer", "title"],
"additionalProperties": false,
"title": "Set map layer legend title"
}

Set map layer line style

Select connection line style. Supported layer types: PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"lineStyle": {
"type": "string",
"enum": ["line", "dashed", "dotted"],
"description": "Style of the line for the point connection layer"
}
},
"required": ["layer", "lineStyle"],
"additionalProperties": false,
"title": "Set map layer line style"
}

Layer location type

Change location format and clear the affected geographic bindings, as in the property panel. Point, heat map and connection layers support latLng, geoPoint and geoHash; shape layers use geoJson. Destination location is only supported by point connections.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"locationType": {
"type": "string",
"enum": ["latLng", "geoPoint", "geoHash", "geoJson"]
}
},
"required": ["layer", "locationType"],
"additionalProperties": false,
"title": "Layer location type"
}

Set map layer map language

Set the Here map language using a two-character language code, or an empty string for the default. Supported layer types: Map.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"mapLanguage": {
"description": "Language of the map in ISO 639-1 format",
"anyOf": [
{
"type": "string",
"const": ""
},
{
"type": "string",
"minLength": 2,
"maxLength": 2
}
]
}
},
"required": ["layer", "mapLanguage"],
"additionalProperties": false,
"title": "Set map layer map language"
}

Set map layer map type

Select the background tile provider. Here maps also require an API key. Supported layer types: Map.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"mapType": {
"type": "string",
"enum": ["openStreetMap", "hereMap"],
"description": "Type of map to show(OpenStreetMap, etc)"
}
},
"required": ["layer", "mapType"],
"additionalProperties": false,
"title": "Set map layer map type"
}

Set map layer max size

Set the upper bound of the input measure domain for custom sizing. This is a measure value, not an output radius. Supported layer types: Point, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"maxSize": {
"description": "Maximum size of the layer",
"type": "number"
}
},
"required": ["layer", "maxSize"],
"additionalProperties": false,
"title": "Set map layer max size"
}

Set map layer max visible zoom

Set the maximum zoom at which the layer is visible when conditional visibility is enabled. Cannot be below its minimum zoom. Supported layer types: Point, Shape, PointConnection, HeatMap, Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"maxZoom": {
"type": "number",
"minimum": 0,
"maximum": 18,
"description": "Zoom level at which the layer is hidden"
}
},
"required": ["layer", "maxZoom"],
"additionalProperties": false,
"title": "Set map layer max visible zoom"
}

Set layer measure

Set or replace a measure in a layer role other than supportingMeasures. Read getMapLayerLocation for supported roles. Use addMapLayerSupportingMeasure for supportingMeasures. Use an available field key and sourceKind, with an advertised aggregation for raw fields.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"sourceKind": {
"type": "string",
"const": "field",
"description": "Raw database field from available data `fields`."
},
"key": {
"type": "string",
"description": "Engine key of the item to be added as a measure, eg. \"[Cars].[Horsepower]\""
},
"aggregation": {
"type": "string",
"description": "Required for raw database fields. Use one of the aggregation names returned for that field."
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"role": {
"type": "string",
"enum": ["geo", "secondGeo", "thirdGeo", "fourthGeo", "size", "measure"]
}
},
"required": ["sourceKind", "key", "aggregation", "layer", "role"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"sourceKind": {
"type": "string",
"const": "measure",
"description": "Predefined/user-defined measure from available data `measures`."
},
"key": {
"type": "string",
"description": "Engine key of the item to be added as a measure, eg. \"[Cars].[Horsepower]\""
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"role": {
"type": "string",
"enum": ["geo", "secondGeo", "thirdGeo", "fourthGeo", "size", "measure"]
}
},
"required": ["sourceKind", "key", "layer", "role"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"sourceKind": {
"type": "string",
"const": "calculation",
"description": "Predefined calculation from available data `measures`."
},
"key": {
"type": "string",
"description": "Engine key of the item to be added as a measure, eg. \"[Cars].[Horsepower]\""
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"role": {
"type": "string",
"enum": ["geo", "secondGeo", "thirdGeo", "fourthGeo", "size", "measure"]
}
},
"required": ["sourceKind", "key", "layer", "role"],
"additionalProperties": false
}
],
"title": "Set map layer measure"
}

Set layer measure filter

Use the same filter contract as other charts, scoped to this layer. measureName accepts a unique visible name or the data item ID returned by getMapLayerMeasures. Measure filters run before aggregation; result filters run after aggregation.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": [
"equals",
"doesNotEqual",
"greaterThan",
"lessThan",
"greaterThanOrEqualTo",
"lessThanOrEqualTo",
"contains",
"excludes",
"like",
"notLike",
"startsWith",
"endsWith"
],
"description": "Filter operator that requires a value"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "value", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": ["isBetween", "isNotBetween"],
"description": "Filter operator that requires valueFrom and valueTo"
},
"valueFrom": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Lower filter value"
},
"valueTo": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Upper filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "valueFrom", "valueTo", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": ["inList", "excludedFromList"],
"description": "Filter operator that requires a list of values"
},
"values": {
"minItems": 1,
"type": "array",
"items": {
"type": "string"
},
"description": "Filter values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "values", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"type": "string",
"enum": ["isNull", "notNull"],
"description": "Filter operator that does not require values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "fieldKey", "operator", "layer"],
"additionalProperties": false
}
],
"title": "Set layer measure filter"
}

Set map layer min size

Set the lower bound of the input measure domain for custom sizing. This is a measure value, not an output radius. Supported layer types: Point, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"minSize": {
"description": "Minimum size of the layer",
"type": "number"
}
},
"required": ["layer", "minSize"],
"additionalProperties": false,
"title": "Set map layer min size"
}

Set map layer min visible zoom

Set the minimum zoom at which the layer is visible when conditional visibility is enabled. Cannot exceed its maximum zoom. Supported layer types: Point, Shape, PointConnection, HeatMap, Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"minZoom": {
"type": "number",
"minimum": 0,
"maximum": 18,
"description": "Zoom level at which the layer is shown"
}
},
"required": ["layer", "minZoom"],
"additionalProperties": false,
"title": "Set map layer min visible zoom"
}

Set map layer opacity

Set layer opacity from 0 (transparent) to 100 (opaque). Supported layer types: Map, Image, Point, Shape, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"opacity": {
"description": "Opacity of the map layer",
"type": "number",
"minimum": 0,
"maximum": 100
}
},
"required": ["layer", "opacity"],
"additionalProperties": false,
"title": "Set map layer opacity"
}

Set map layer point shape

Select the symbol used to draw individual points. Supported layer types: Point.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"shape": {
"type": "string",
"enum": ["circle", "hexagon", "triangle", "square", "star"]
}
},
"required": ["layer", "shape"],
"additionalProperties": false,
"title": "Set map layer point shape"
}

Set map layer political view

Set the Here political view using a two-character country code, or an empty string for the default. Supported layer types: Map.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"politicalView": {
"description": "Political view of the map in ISO 3166-1 alpha-2 format",
"anyOf": [
{
"type": "string",
"const": ""
},
{
"type": "string",
"minLength": 2,
"maxLength": 2
}
]
}
},
"required": ["layer", "politicalView"],
"additionalProperties": false,
"title": "Set map layer political view"
}

Set layer result filter

Use the same filter contract as other charts, scoped to this layer. measureName accepts a unique visible name or the data item ID returned by getMapLayerMeasures. Measure filters run before aggregation; result filters run after aggregation.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": [
"equals",
"doesNotEqual",
"greaterThan",
"lessThan",
"greaterThanOrEqualTo",
"lessThanOrEqualTo",
"contains",
"excludes",
"like",
"notLike",
"startsWith",
"endsWith"
],
"description": "Filter operator that requires a value"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "value", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": ["isBetween", "isNotBetween"],
"description": "Filter operator that requires valueFrom and valueTo"
},
"valueFrom": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Lower filter value"
},
"valueTo": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
],
"description": "Upper filter value"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "valueFrom", "valueTo", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": ["inList", "excludedFromList"],
"description": "Filter operator that requires a list of values"
},
"values": {
"minItems": 1,
"type": "array",
"items": {
"type": "string"
},
"description": "Filter values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "values", "layer"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"measureName": {
"type": "string",
"description": "Visible measure name or label"
},
"operator": {
"type": "string",
"enum": ["isNull", "notNull"],
"description": "Filter operator that does not require values"
},
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["measureName", "operator", "layer"],
"additionalProperties": false
}
],
"title": "Set layer result filter"
}

Layer destination location type

Change location format and clear the affected geographic bindings, as in the property panel. Point, heat map and connection layers support latLng, geoPoint and geoHash; shape layers use geoJson. Destination location is only supported by point connections.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"locationType": {
"type": "string",
"enum": ["latLng", "geoPoint", "geoHash", "geoJson"]
}
},
"required": ["layer", "locationType"],
"additionalProperties": false,
"title": "Layer destination location type"
}

Set map layer show conditionally

Enable or disable visibility controlled by zoom bounds. Preserves the layer visible flag. Supported layer types: Point, Shape, PointConnection, HeatMap, Image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"enabled": {
"type": "boolean",
"description": "Whether the feature for showing conditionally is enabled"
}
},
"required": ["layer", "enabled"],
"additionalProperties": false,
"title": "Set map layer show conditionally"
}

Set map layer show tooltip on hover

Show or hide hover tooltips on layer marks. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"showTooltipOnHover": {
"description": "Whether the tooltip on hover is enabled",
"type": "boolean"
}
},
"required": ["layer", "showTooltipOnHover"],
"additionalProperties": false,
"title": "Set map layer show tooltip on hover"
}

Set map layer size

Set the fixed point size or connection width. The unit is pixels for fixedPixels and kilometers for fixedDistance. Supported layer types: Point, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"size": {
"type": "number",
"description": "Size of the layer in pixels or distance"
}
},
"required": ["layer", "size"],
"additionalProperties": false,
"title": "Set map layer size"
}

Set map layer size range

Select automatic, custom or absolute measure-based sizing. Custom bounds define the input measure domain; absolute uses raw measure values. PointConnection layers support auto and custom only; read getMapLayerSizing for supported ranges. Supported layer types: Point, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"sizeRange": {
"type": "string",
"enum": ["auto", "custom", "absolute"],
"description": "Range of size for the layer (auto, custom or absolute)"
}
},
"required": ["layer", "sizeRange"],
"additionalProperties": false,
"title": "Set map layer size range"
}

Set map layer size type

Select fixed or measure-based sizing in pixels or kilometers. Measure-based sizing uses the size role from getMapLayerLocation. PointConnection layers support fixedPixels and byMeasurePixels only; read getMapLayerSizing for supported modes. Supported layer types: Point, PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"sizeType": {
"type": "string",
"enum": ["fixedPixels", "fixedDistance", "byMeasurePixels", "byMeasureDistance"]
}
},
"required": ["layer", "sizeType"],
"additionalProperties": false,
"title": "Set map layer size type"
}

Set layer static filter group

Replace the selected layer static filters with a nested AND/OR filter group using external field keys. An empty group clears the filters.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"filterGroup": {
"$ref": "#/$defs/__schema0"
}
},
"required": ["layer", "filterGroup"],
"additionalProperties": false,
"title": "Set map layer static filter group",
"$defs": {
"__schema0": {
"type": "object",
"properties": {
"operator": {
"type": "string",
"enum": ["and", "or"]
},
"filters": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"anyOf": [
{
"type": "string",
"enum": [
"equals",
"doesNotEqual",
"greaterThan",
"lessThan",
"greaterThanOrEqualTo",
"lessThanOrEqualTo",
"isBetween",
"isNotBetween",
"isNull",
"notNull",
"contains",
"excludes",
"like",
"notLike",
"startsWith",
"endsWith",
"predefined_date_range",
"previous",
"current",
"before",
"after",
"inList",
"excludedFromList",
"divider"
]
},
{
"type": "string",
"enum": [
"ytd",
"mtd",
"qtd",
"wtd",
"pytd",
"pmtd",
"pqtd",
"pwtd",
"l12m",
"l90d",
"l30d",
"l7d",
"cy",
"cq",
"cm",
"py",
"pm",
"pq",
"pw",
"today",
"yesterday",
"mindate",
"maxdate"
]
}
]
},
"values": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
"valueFrom": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
"valueTo": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
"secondValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"dateFilter": {
"anyOf": [
{
"type": "string",
"enum": [
"ytd",
"mtd",
"qtd",
"wtd",
"pytd",
"pmtd",
"pqtd",
"pwtd",
"l12m",
"l90d",
"l30d",
"l7d",
"cy",
"cq",
"cm",
"py",
"pm",
"pq",
"pw",
"today",
"yesterday",
"mindate",
"maxdate"
]
},
{
"type": "null"
}
]
}
},
"required": ["fieldKey", "operator", "values"],
"additionalProperties": false
},
{
"$ref": "#/$defs/__schema0"
}
]
}
}
},
"required": ["operator", "filters"],
"additionalProperties": false
}
}
}

Set map layer stroke color

Set shape border color. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"strokeColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}
},
"required": ["layer", "strokeColor"],
"additionalProperties": false,
"title": "Set map layer stroke color"
}

Set map layer stroke enabled

Show or hide shape borders. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"strokeEnabled": {
"type": "boolean"
}
},
"required": ["layer", "strokeEnabled"],
"additionalProperties": false,
"title": "Set map layer stroke enabled"
}

Set map layer stroke width

Set shape border width in pixels. Supported layer types: Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"strokeWidth": {
"type": "number",
"minimum": 1,
"maximum": 20
}
},
"required": ["layer", "strokeWidth"],
"additionalProperties": false,
"title": "Set map layer stroke width"
}

Set map layer tile style

Select the OpenStreetMap tile color style. Supported layer types: Map.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"layerStyle": {
"type": "string",
"enum": ["default", "greyscale", "black", "dark"]
}
},
"required": ["layer", "layerStyle"],
"additionalProperties": false,
"title": "Set map layer tile style"
}

Set map layer tile type

Select the OpenStreetMap tile variant. Supported layer types: Map.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"layerType": {
"type": "string",
"enum": ["default", "humanitarian", "cycle"]
}
},
"required": ["layer", "layerType"],
"additionalProperties": false,
"title": "Set map layer tile type"
}

setMapLayerTooltipSupportingMeasuresDataItemIds

Section titled “setMapLayerTooltipSupportingMeasuresDataItemIds”

Set map layer tooltip supporting measures data item ids

Select supporting measures included in tooltips using dataItemId values from getMapLayerSupportingMeasures. An empty list clears them. Supported layer types: Point, Shape.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"tooltipSupportingMeasuresDataItemIds": {
"description": "Selected supporting measure data item IDs shown in point layer tooltips",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["layer", "tooltipSupportingMeasuresDataItemIds"],
"additionalProperties": false,
"title": "Set map layer tooltip supporting measures data item ids"
}

Set map layer use geodesic lines

Enable or disable geodesic connection routes. Supported layer types: PointConnection.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"useGeodesicLines": {
"type": "boolean",
"description": "Whether to use geodesic lines for the point connection layer"
}
},
"required": ["layer", "useGeodesicLines"],
"additionalProperties": false,
"title": "Set map layer use geodesic lines"
}

Layer visible

Show or hide a layer. Conditional visibility and data requirements can still prevent a visible layer from being drawn.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
},
"visible": {
"type": "boolean"
}
},
"required": ["layer", "visible"],
"additionalProperties": false,
"title": "Set map layer visibility"
}

Map longitude

Set the configured map center longitude.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"description": "Longitude of the map",
"title": "Set map longitude"
}

Map maximum zoom

Set the maximum zoom. It cannot be below the minimum zoom; the configured zoom is clamped to the new range.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"minimum": 0,
"maximum": 18,
"title": "Set map maximum zoom"
}

Map minimum zoom

Set the minimum zoom. It cannot exceed the maximum zoom; the configured zoom is clamped to the new range.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"minimum": 0,
"maximum": 18,
"title": "Set map minimum zoom"
}

Map view

Set the configured latitude, longitude and zoom together. Use manual zoom mode to prevent auto-zoom from fitting the data.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"latitude": {
"type": "number",
"description": "Latitude of the map"
},
"longitude": {
"type": "number",
"description": "Longitude of the map"
},
"zoom": {
"type": "number",
"minimum": 0,
"maximum": 18,
"description": "Zoom level of the map"
}
},
"required": ["latitude", "longitude", "zoom"],
"additionalProperties": false,
"title": "Set map view"
}

Map zoom

Set the configured zoom level within the map minimum and maximum zoom.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"minimum": 0,
"maximum": 18,
"description": "Zoom level of the map",
"title": "Set map zoom"
}

Map zoom mode

Choose automatic fitting to layer data or a manually configured map view.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string",
"enum": ["auto", "manual"],
"description": "Zoom mode of the map",
"title": "Set map zoom mode"
}

Toggle layer visibility

Toggle the configured visibility of a layer selected by ID or exact name.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"layer": {
"type": "string",
"minLength": 1,
"description": "Layer ID or exact layer name from getMapLayers. IDs take precedence. Duplicate names require an ID."
}
},
"required": ["layer"],
"additionalProperties": false,
"title": "Toggle map layer visibility"
}