Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline Map Functionality Issue #628

Open
mateusztylman opened this issue Jul 26, 2024 · 4 comments
Open

Offline Map Functionality Issue #628

mateusztylman opened this issue Jul 26, 2024 · 4 comments
Assignees

Comments

@mateusztylman
Copy link

mateusztylman commented Jul 26, 2024

Hi there!

I implemented the offline map functionality that you added in the latest update. However, I encountered a problem where the map still doesn’t display even after downloading the point. I went through your entire example and couldn’t find anything that I might have missed. I decided to test your example as well, and it doesn’t work either.

What did I do?

I added an additional button to the example that centers the map on a point that I had previously downloaded. This way, the map doesn’t download the area automatically and doesn’t use the cache.

Could you please check this?

@maios maios self-assigned this Aug 7, 2024
@maios
Copy link
Contributor

maios commented Aug 7, 2024

Hi @mateusztylman, thank you for raising this, this is most likely due to the TileStore in the example is created at custom path, and we did not set this tileStore instance to MapboxMapsOptions.tileStore(not yet exposed API). Using default TileStore should work just fine.
I have fixed this in 1933f79 by setting this tileStore so that the Map objects will you this and not the one at default path.

@vijinhps
Copy link

@maios
i tried your example, downloaded style and region..but it shows black and still doesnt load

@maios
Copy link
Contributor

maios commented Aug 13, 2024

Offline maps shows black might be related to one issue with TileStore that we are investigating mapbox/mapbox-maps-ios#2123
I will keep you updated on this

@maios
Copy link
Contributor

maios commented Aug 29, 2024

@vijinhps can you try again with our latest release v2.2.1? We have made some fixes to offline, where we make sure that Map objects are using the same TileStore that is used to download offline regions, and that default pixelRatio is used in TilesetDescriptorOptions - which is crucial for raster tiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants