Raster tiles from file on android #3062
Unanswered
Vanosuperhero
asked this question in
Q&A
Replies: 1 comment 1 reply
-
That sounds like something that should work. You could also try providing the needed files as assets and use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!) Is it possible to use
file://
to get raster tiles from folders z/x/y on Android?I'm trying to add a raster layer to a map via RasterLayer(id, uri)
and pass the uri as
"file://"+LocalContext.current.getExternalFilesDir(null)?.path+"/tiles.json"
Inside tiles.json there is information about the boundaries and zoom levels, as well as the path to the tiles:
But for some reason mapLibre does not get tiles from there. The only way out is to add a local server, but i would like to avoid it if possible and transfer the tiles directly.
Beta Was this translation helpful? Give feedback.
All reactions