-
Notifications
You must be signed in to change notification settings - Fork 127
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
Black screen (offline map) #661
Comments
me too have this problem..please let me know once any fix is given or if you find some ways to make this work |
Hi, could you try running it on fresh install app? If it still persists then could you share the |
i tried..doesnt work |
@maios Please let me know the status |
I noticed that when downloading it as satellite style, the screen remains black, and when choosing another style type, the map appears |
Any updates for this issue? We rely on offline maps and it's not working for us either. |
@NaimAbb Satellite style or anything that uses raster tiles need to have correct pixelRatio, which in this #640 it should use the default pixelRatio, this fix is included in v2.2.0, can you try with this version, fresh install app and see if it works? |
Could you provide MapboxMaps Flutter SDK version that you are using, additionally a small project to help reproduce would be helpful for us to debug this issue? |
Hi I am using latest version of mapbox..
Example project in mapbox package itself is not working..
Can you please check as our project is relying on this offline feature
…On Mon, Aug 26, 2024, 3:59 PM Mai Mai ***@***.***> wrote:
Any updates for this issue? We rely on offline maps and it's not working
for us either.
Could you provide MapboxMaps Flutter SDK version that you are using,
additionally a small project to help reproduce would be helpful for us to
debug this issue?
—
Reply to this email directly, view it on GitHub
<#661 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIJTVXSDLOQDYVTO22ST5O3ZTMKBPAVCNFSM6AAAAABM4RQXM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGAZTENZZGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
the example in our package works for us :-/ so I suspect this might be caching issues, but fresh install should then work. Maybe you can provide a small projects that can reproduce the issue, for more information like devices name and model? |
We are seeing the same problem. To test, I do the following:
Points to note:
|
There's no need to provide a demo project. The mapbox demo app displays this behaviour on both our physical test devices, as noted in my earlier comment. I've also added similar code to our own app but this fails too. Can you share more info about what devices / environment you see this working on? and whether the code you're running is the same as the demo app in the examples dir please? |
our apologies, it turns out that we did not include #640 which supposed to fix offline map for raster tiles in our latest release. We will be issuing new patch release asap and hope it will fix the black offline map for you <3 |
Thanks - will this also fix the problem we're seeing with vector tiles? Note above, that no layers, raster or vector, work for us. |
I have just tested it by building the examples from main and running on iPhone 15 Pro / iOS 18.1 Beta:
|
can you please try in android
…On Tue, Aug 27, 2024 at 3:09 PM Francesco Balestrieri < ***@***.***> wrote:
I have just tested it by building the examples from main and running on
iPhone 15 Pro / iOS 18.1 Beta:
- launch the examples app
- open Offline example
- click "Download map" and wait for "Style Pack" and "Tile region" to
reach 1.0
- map shows
- enable airplane mode and pan around
- map continues to show
—
Reply to this email directly, view it on GitHub
<#661 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIJTVXX7MJM3DXJDHY24AQ3ZTRM5XAVCNFSM6AAAAABM4RQXM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSGI2DQMZXGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I could only try this on the emulator with similar result. I'll continue testing |
I have been testing and seeing the problem described on two physical devices as noted yesterday. |
I can also confirm that the issue reproduces in my set-up with the stock example built with 2.2.0, so the upcoming 2.2.1 or building from the main branch should resolve the issue at least partially as expected. If the example works with the latest version but your own application doesn't, then we would appreciate if you could share a reproducer. |
I also tried the same test with the Mapbox Standard style and can confirm that the same issue reproduces in 2.2.0 but not in main. We are aiming to release 2.2.1 today to fix the issue. |
we just released 2.2.1 that should resolve this issue |
This issue is not fixed. I have just cloned the lastest repo and your demo still fails with a black screen after the map has downloaded. This is you demo running on my on OnePlus 10 (Android 11): https://youtu.be/u5rPyy_uF4g |
Thanks for the video, it's helpful. I can see that the map shows when you return to the offline example the second time. Is this the same behavior you have observed previously? I was under the impression that the map stayed black no matter what. |
No this is not the behaviour I saw previously. I was seeing what I think is the background color for the map style I had downloaded - a different issue from the black screen perhaps? Maybe we are addressing multiple bugs with this ticket? See my comment from 4 days ago for my description on how to reproduce the problem and the map's appearance:
|
I think this might be a separate issue, possibly Android specific. I can reproduce on Galaxy S24 but not iPhone 15 Pro |
I see exactly the same problem on iOS (tested on physical device iPhone 14 Pro, iOS 17.5.1) so this is not Android specific: |
Reopening given the latest reports. |
@noforeignland it seems that the problem is with the TileStore created at a temporary directory, we are investigating this. Using |
Please note my comments and video links for Android and iOS attached above. We are not seeing a black map, we are seeing a map in what appears to be the style's base color which might be a different problem. |
@noforeignland by "style's base color", do you mean this? Because then it is the same problem where the tiles are not loaded 😅 |
Hi everyone, we have updated our offline example, could you please try again and report to us if the black offline map still exist? It would be a good idea to also clearing Derived data before building the app from fresh install. |
Our inital tests look good. Thanks for working on this. |
I have a problem, which is that I am trying to view the map without connecting to the Internet, and I followed the example on github, but after downloading the map, the screen remains black.
The text was updated successfully, but these errors were encountered: