Grid Layer Descriptor
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
Properties
Optional feature filter.
JS-style mask convenience; takes precedence over maskLayerIds and maskLayerId when provided.
Land/water/none mask for symbol placement.
Single mask layer id shorthand (JS mask: "layerId" on a layer). Lowest precedence among stencil mask fields: after stencilLayerMask, layerMask, and maskLayerIds.
JS-style convenience for custom stencil masks: mask: { layerIds: ["admin-mask"] }
Icon, text, optional sample grid, and fill/stroke.
Requested DataQuality for tile or asset resolution where used.
MVT layer name, or null for GeoJSON when applicable.
Advanced custom stencil mask configuration. Takes precedence over maskLayerIds when set.
When true, MapsGL does not register a Mapbox fill / line / circle / symbol / heatmap style layer. The com.xweather.mapsgl.layers.tile.VectorTileLayer still exists for tile/GeoJSON consumers, MVT fetch (e.g. com.xweather.mapsgl.map.mapbox.GlStencilCustomMaskCoordinator), and GLES stencil mesh build in com.xweather.mapsgl.renderers.TileLayerRenderer — only screen drawing via Mapbox paint is skipped.
Optional per-layer timing (Apple timing). When non-null, com.xweather.mapsgl.map.MapController.addLayer copies these fields onto the created com.xweather.mapsgl.layers.tile.TileLayer.timing. Null keeps the layer's existing defaults (time-series sources may still enable interval mode).
When true, eligible fill/line/circle/symbol layers draw via MapsGL GLES instead of Mapbox style layers. MVT sources use com.xweather.mapsgl.renderers.VectorFillLayerRenderer / com.xweather.mapsgl.renderers.VectorLineLayerRenderer / etc. GeoJSON fill, line, circle, symbol, and heatmap layers also support GLES when this flag is set.