Filters
setFilter
Parameters
Parameter (Required)
Description
Remark
layerID
The ID of the layer to which the filter will be applied.
String
filter
Filters control which features a style layer renders from its source.
Array | null
Returns
Parameter
Description
Remark
Example
getFilter
Parameters
Parameter (Required)
Description
Remark
layerID
The ID of the style layer whose filter to get.
String
Returns
Parameter
Description
Remark
Example
moveLayer
Parameters
Parameter (Required)
Description
Remark
id
The ID of the layer to move.
String
beforeLayerID
The ID of an existing layer to insert the new layer before. When viewing the map, the id
layer will appear beneath the beforeId
layer.
String
Returns
Parameter
Description
Remark
Example
removeLayer
Parameters
Parameter (Required)
Description
Remark
id
ID of the layer to remove.
String
Returns
Parameter
Description
Type
Example
Last updated