Line Layer Descriptor
data class LineLayerDescriptor(var id: String, var source: String, var sourceLayer: String? = null, var paint: LineLayerPaint = LineLayerPaint(
stroke = StrokePaint()
), var filter: Expression? = null) : VectorLayerDescriptor<LineLayerPaint> , LayerEventEmitter
Descriptor for a Mapbox line layer: line strings and polygon rings stroked from vector or GeoJSON geometry.
Workflow matches other VectorLayerDescriptor types: com.xweather.mapsgl.map.MapController.addSource then com.xweather.mapsgl.map.MapController.addLayer. Implemented as a VectorTileLayer over Mapbox’s line layer.
Set sourceLayer for MVT sources; use null for GeoJSON. paint controls color, width, opacity, and join/cap via LineLayerPaint → Mapbox line-* paint properties.
See also
Constructors
Link copied to clipboard
constructor(id: String, source: String, sourceLayer: String? = null, paint: LineLayerPaint = LineLayerPaint(
stroke = StrokePaint()
), filter: Expression? = null)