Files
MapLibreParticleLab/platform/android/docs/styling/building-layer.md

1.4 KiB

Building Layer

{{ activity_source_note("BuildingFillExtrusionActivity.kt") }}

In this example will show how to add a Fill Extrusion layer to a style.

{{ openmaptiles_caption() }}

We use the OpenFreeMap Bright style which, unlike OpenFreeMap Libery, does not have a fill extrusion layer by default. However, if you inspect this style with Maputnik you will find that the multipolygons in the building layer (of the openfreemap source) each have render_min_height and render_height properties.

--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/BuildingFillExtrusionActivity.kt:setupBuildings"
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/BuildingFillExtrusionActivity.kt:lightPosition"
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/style/BuildingFillExtrusionActivity.kt:lightColor"