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.
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.
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.