833 B
833 B
Vector Tiles
{{ activity_source_note("VectorTileActivity.kt") }}
You can specify where to load MVTs (which sometimes have .pbf extension) by creating a TileSet object with template parameters (for example {z} which will be replaced with the zoom level).
MapLibre has a repo with some example vector tiles with the OpenMapTiles schema around Innsbruck, Austria. In the example we load these MVTs and create a line layer for the road network.
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/sources/VectorTileActivity.kt:addTileSet"