Skip to main content
Version: 0.1.0

Fill Extrusion Layer

The FillExtrusionLayer is either used by the map style or can be added to the map programmatically to symbolize data on the map.

Fill Extrusion Layer

Basic Usage

late final MapController _controller;


Widget build(BuildContext context) {
return MapLibreMap(
options: MapOptions(center: Position(9.17, 47.68)),
onMapCreated: (controller) => _controller = controller,
onStyleLoaded: () async {
await _controller.addSource(
const GeoJsonSource(
id: _sourceId,
data:
'https://maplibre.org/maplibre-gl-js/docs/assets/indoor-3d-map.geojson',
),
);
await _controller.addLayer(_fillExtrusionLayer);
}
);
}

Check out the example app for to learn more.

Style & Layout

Use the paint property to change the style and the layout property to change the behavior on the map.

Read the Paint & Layout chapter to learn more on this topic.