-
|
Hi.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
MBTiles is a file format that packages tiles, both vector and raster tiles work. There are various projects that can help with making vector tiles, such as Planetiler or Martin. MapLibre Native supports loading MBTiles directly from disk with the I am not familiar with .map files from MapsForge. We don't support this file format. |
Beta Was this translation helpful? Give feedback.
-
|
@Golem1132 @louwers hi mate, Did you succeed? I'm stuck and don't know how to load the offline mbtiles map file downloaded by maptiler. |
Beta Was this translation helpful? Give feedback.
-
|
I hope this will help you. Repo I linked is kind of helpful. This is how I did it in my test kmm project (only on android side). First of all you need a proper style.json file. I don't remember where I found my map.mbtiles file but I put it in app files (so it can be reached using filesDir/FILE_NAME.mbtiles) TLDR
Here is how it looks in code (I use https://github.com/maplibre/maplibre-compose) I hope this helps. |
Beta Was this translation helpful? Give feedback.

Thank you. That actually helped. My style.json file lacked this:
"layers": [
{
"id": "maptiler-overlay",
"type": "raster",
"source": "NAME_OF_SOURCE",
"paint": {
"raster-opacity": 1.0
}
}
]