Displaying offline map - load mbtiles file #2182
Replies: 3 comments 14 replies
-
Do you moved around? Is there no tile at all? |
Beta Was this translation helpful? Give feedback.
-
Did you turn logging on as suggested, normally is the first answer to such a problem? Second would be, are you sure, that you create a valid MBTiles file? Do you add all tables? Are all the data in the files are correct? Do you update the field "bounds"? To say, that a well tested file work, but your own file doesn't work on two different system is the fault of Mapsui is a little bit strange ;-) |
Beta Was this translation helpful? Give feedback.
-
I assume, that you expect something, that isn't provided. A MBTiles cache or SqlitePersistanceCache create not a valid MBTiles file according to the specification (see here). So, if you want to create a valid MBTiles file, you have to do this by your own. Use the same table names according to the specification and fill all fields correct. And, last, but not least, read the copyrights of the most map providers, that don't allow saving tiles for offline use ;-) |
Beta Was this translation helpful? Give feedback.
-
Hi,
so after the previous issue with getting the extent of the visible map now I have another one. I loaded the visible tiles to a local sqlite db. I would now like to display the map from the tiles loaded for ex. when a button is clicked.
I tried like this but I get just an empty view
I checked the myOfflineDb.mbtiles file with DB Browser for SQLite and it has the tiles inside, so that's ok. Is there anything else I have to set for it to display the tiles? What am I missing here?
Beta Was this translation helpful? Give feedback.
All reactions