BubbleLayerOptions interface
Options used when rendering Point objects in a BubbleLayer.
- Extends
Properties
| blur | The amount to blur the circles.
A value of 1 blurs the circles such that only the center point if at full opacity.
Default |
| color | The color to fill the circle symbol with.
Default |
| filter | An expression specifying conditions on source features. Only features that match the filter are displayed. |
| max |
An integer specifying the maximum zoom level to render the layer at.
This value is exclusive, i.e. the layer will be visible at |
| min |
An integer specifying the minimum zoom level to render the layer at.
This value is inclusive, i.e. the layer will be visible at |
| opacity | A number between 0 and 1 that indicates the opacity at which the circles will be drawn.
Default |
| pitch |
Specifies the orientation of circle when map is pitched. `"map"`: The circle is aligned to the plane of the map. `"viewport"`: The circle is aligned to the plane of the viewport. Default: `"viewport"` |
| radius | The radius of the circle symbols in pixels.
Must be greater than or equal to 0.
Default |
| source | The id or instance of a data source which the layer will render. |
| source |
Required when the source of the layer is a VectorTileSource. A vector source can have multiple layers within it, this identifies which one to render in this layer. Prohibited for all other types of sources. |
| stroke |
The color of the circles' outlines.
Default |
| stroke |
A number between 0 and 1 that indicates the opacity at which the circles' outlines will be drawn.
Default |
| stroke |
The width of the circles' outlines in pixels.
Default |
| visible | Specifies if the layer is visible or not.
Default |
Property Details
blur
The amount to blur the circles.
A value of 1 blurs the circles such that only the center point if at full opacity.
Default 0.
blur?: number | Expression
Property Value
number | Expression
color
The color to fill the circle symbol with.
Default "#1A73AA".
color?: string | Expression
Property Value
string | Expression
filter
An expression specifying conditions on source features. Only features that match the filter are displayed.
filter?: Expression
Property Value
maxZoom
An integer specifying the maximum zoom level to render the layer at.
This value is exclusive, i.e. the layer will be visible at maxZoom > zoom >= minZoom.
Default 24.
maxZoom?: number
Property Value
number
minZoom
An integer specifying the minimum zoom level to render the layer at.
This value is inclusive, i.e. the layer will be visible at maxZoom > zoom >= minZoom.
Default 0.
minZoom?: number
Property Value
number
opacity
A number between 0 and 1 that indicates the opacity at which the circles will be drawn.
Default 1.
opacity?: number | Expression
Property Value
number | Expression
pitchAlignment
Specifies the orientation of circle when map is pitched.
`"map"`: The circle is aligned to the plane of the map.
`"viewport"`: The circle is aligned to the plane of the viewport.
Default: `"viewport"`pitchAlignment?: "map" | "viewport"
Property Value
"map" | "viewport"
radius
The radius of the circle symbols in pixels.
Must be greater than or equal to 0.
Default 8.
radius?: number | Expression
Property Value
number | Expression
source
The id or instance of a data source which the layer will render.
source?: string | Source
Property Value
string | Source
sourceLayer
Required when the source of the layer is a VectorTileSource. A vector source can have multiple layers within it, this identifies which one to render in this layer. Prohibited for all other types of sources.
sourceLayer?: string
Property Value
string
strokeColor
The color of the circles' outlines.
Default "#FFFFFF".
strokeColor?: string | Expression
Property Value
string | Expression
strokeOpacity
A number between 0 and 1 that indicates the opacity at which the circles' outlines will be drawn.
Default 1.
strokeOpacity?: number | Expression
Property Value
number | Expression
strokeWidth
The width of the circles' outlines in pixels.
Default 2.
strokeWidth?: number | Expression
Property Value
number | Expression
visible
Specifies if the layer is visible or not.
Default true.
visible?: boolean
Property Value
boolean