Difficulty adding a Raster Layer #302
-
On top of my base layer, I would like to add a Raster Layer from tiles stored in the resource bundle of my iOS/Android app. I'd like to do it programatically in Kotlin, but happy to do it in JSON if that's the only way. Would somebody be able to provide me an example please to point me in the right direction; I've really struggled to get it correct. Thank you for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Could you share the code you've tried, and the error or issues you've encountered? |
Beta Was this translation helpful? Give feedback.
-
The demo app now showcases how to display tiles from assets bundled in your app. It requires new functionality available in the next snapshot, or in the upcoming v0.7.0. See https://github.com/sargunv/maplibre-compose/blob/6d220680570d2f67ba505b2cf0d82ce423244861/demo-app/src/commonMain/kotlin/dev/sargunv/maplibrecompose/demoapp/demos/LocalTilesDemo.kt#L33-L53 |
Beta Was this translation helpful? Give feedback.
The demo app now showcases how to display tiles from assets bundled in your app. It requires new functionality available in the next snapshot, or in the upcoming v0.7.0. See https://github.com/sargunv/maplibre-compose/blob/6d220680570d2f67ba505b2cf0d82ce423244861/demo-app/src/commonMain/kotlin/dev/sargunv/maplibrecompose/demoapp/demos/LocalTilesDemo.kt#L33-L53