Grid Layer Descriptor
data class GridLayerDescriptor(var id: String, var source: String, var sourceLayer: String? = null, var mask: MaskLayerKind = MaskLayerKind.NONE, var paint: GridLayerPaint = GridLayerPaint(
icon = IconPaint(),
text = emptyList()
), var filter: Expression? = null, var quality: DataQuality = DataQuality.medium) : VectorLayerDescriptor<GridLayerPaint> , LayerEventEmitter
Descriptor for symbol-style layers that share GridLayerPaint with SymbolLayerDescriptor but add masking and data quality knobs used by gridded and dense icon workflows (e.g. encoded-grid sidecars).
Register the source, then com.xweather.mapsgl.map.MapController.addLayer. mask participates in land/water masking where the map pipeline supports it; quality hints requested tile or sampling fidelity for applicable sources. The initializer wires paint.sample’s event emitter to this descriptor for paint-driven events.
See also
Constructors
Link copied to clipboard
constructor(id: String, source: String, sourceLayer: String? = null, mask: MaskLayerKind = MaskLayerKind.NONE, paint: GridLayerPaint = GridLayerPaint(
icon = IconPaint(),
text = emptyList()
), filter: Expression? = null, quality: DataQuality = DataQuality.medium)
Properties
Link copied to clipboard
Optional feature filter.
Link copied to clipboard
Land/water/none mask for symbol placement.
Link copied to clipboard
Icon, text, optional sample grid, and fill/stroke.
Link copied to clipboard
Requested DataQuality for tile or asset resolution where used.
Link copied to clipboard
MVT layer name, or null for GeoJSON when applicable.