Fill Layer Descriptor
Descriptor for a Mapbox fill layer: polygon features filled with optional outline, backed by a vector or GeoJSON source.
Add the source with com.xweather.mapsgl.map.MapController.addSource, then register this descriptor via com.xweather.mapsgl.map.MapController.addLayer. Renders as a VectorTileLayer using Mapbox’s native fill layer.
For vector tiles, set sourceLayer to the MVT layer containing polygons. For GeoJSON, use null on sourceLayer so the whole collection is used. filter restricts which features participate.
See also
Constructors
Properties
Optional Mapbox filter expression.
JS-style mask shorthand (mask: { layerIds: [...] }). Resolved to stencilLayerMask when stencilLayerMask is unset. Apple's maskConfiguration maps here / to stencilLayerMask.
Single mask layer id shorthand. Lowest precedence among mask fields.
List of mask layer ids (JS mask.layerIds). Lower precedence than layerMask.
Fill color and opacity. Outline is drawn on a companion Mapbox line layer ({layerId}::stroke); width comes from com.xweather.mapsgl.style.FillLayerPaint.scaleOutlineThickness.
MVT layer name, or null for GeoJSON-only sources.
Advanced custom stencil mask. Takes precedence over layerMask / maskLayerIds / maskLayerId.
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.