Line/border configuration for geometries.
Controls the outline appearance of polygon geometries.
// Basic borderconst lineConfig: GeometryLineConfig = { lineColor: '#333333', lineWidth: 2, lineOpacity: 0.8};// Data-driven borderconst dynamicLine: GeometryLineConfig = { lineColor: ['get', 'borderColor'], lineWidth: ['case', ['get', 'selected'], 4, 2], lineOpacity: 1}; Copy
// Basic borderconst lineConfig: GeometryLineConfig = { lineColor: '#333333', lineWidth: 2, lineOpacity: 0.8};// Data-driven borderconst dynamicLine: GeometryLineConfig = { lineColor: ['get', 'borderColor'], lineWidth: ['case', ['get', 'selected'], 4, 2], lineOpacity: 1};
Optional
Color of the geometry border/outline.
'#0080FF' Copy
'#0080FF'
lineColor: '#333333'lineColor: ['get', 'borderColor'] Copy
lineColor: '#333333'lineColor: ['get', 'borderColor']
Opacity of the border line.
Value between 0 (fully transparent) and 1 (fully opaque).
1 Copy
1
lineOpacity: 0.8 Copy
lineOpacity: 0.8
Width of the border line in pixels.
2 Copy
2
lineWidth: 3// Highlight selected geometrieslineWidth: ['case', ['get', 'selected'], 4, 2] Copy
lineWidth: 3// Highlight selected geometrieslineWidth: ['case', ['get', 'selected'], 4, 2]
Line/border configuration for geometries.
Controls the outline appearance of polygon geometries.
Example