-
Notifications
You must be signed in to change notification settings - Fork 160
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
Downloaded Tile Region does not have tiles for highest requested zoom level #1016
Comments
@RodrigoSAlves, when I change my center coordinate and geometry to match yours, I am unable to reproduce any issues with the map's display at lower zoom levels on v10.2.0. I've attached a screenshot of the same geometry for both offline examples below: |
@ZiZasaurus Thanks for taking a look. Also, could you provide some more details on how you tried to reproduce? The problem only appears to occur when the device has no connection. |
@RodrigoSAlves it looks like my screenshots didn't attach properly again. Please note that the max zoom extent for Tile granularity st the streets level is zoom 16. Additionally, when you pull a tilepack you get all of the predefined zoom levels so, for example, if you say you only want zoom 0 you get 0-5. You aren't able to retrieve z18 because the maximum zoom extent for streets detail is z16. More information on tile granularity can be found here. |
@RodrigoSAlves closing this ticket but please feel free to reopen if you have additional questions. |
@ZiZasaurus Sorry for the delay. I was just about to post new info on this when I saw your email... Been a little busy with the refactoring of other features also due to the upgrade. Thank you for pointing me to the documentation. Unfortunately I had already read that section several times, and never understood that the zoom level was actually capped at 16. I would suggest this to be made more explicit in the documentation. We have several key features in our app that rely on having great imagery in high level zooms (above 15). Our Android team has also confirmed that they are experiencing the exact same behaviour after upgrading to the new SDK version and converting to use the OfflineManager and TileRegion approach. In order to simplify the code sample that can be used to reproduce the problem, and try to leave no margin for error in our side, I made a new code sample, using the same example provided here, and making only the following changes:
After running the new code, the result was the same as before. While the phone is "offline" (OfflineSwitch.shared.isMapboxStackConnected = false), the image quality in zoom 18 is very low and cannot differentiate street level details. After I re-enable the connection (OfflineSwitch.shared.isMapboxStackConnected = true) I can clearly see them. (I'm just using OfflineSwitch.shared.isMapboxStackConnected for simplicity. We originally discovered the problem using the airplane mode to toggle between having connection and not having connection). Also experimented further with the "legacy" OfflineRegionManager and got the desired result. Street level details were possible to see using the downloaded tiles, while not having a connection. I guess our question is:
Thanks in advance. Code Sample
|
Environment
Observed behavior and steps to reproduce
After downloading a StylePack and TileRegion for a given square (Polygon with 2.5km side) - using an adaptation of the example provided for downloading tile regions - if the user zooms in to high zoom levels where you would expect to clearly see details in residential areas (example: pools, parked cars, etc...), it is not possible to see these details. (Video displaying the behaviour)
I was able to reproduce this by tweaking the code from the example mentioned previously:
In the example, the HTTP requests are disabled after the download is finished. For testing purposes, after 10 seconds I re-enabled connection and the MapView instance auto-refreshed itself to show crystal clear imagery.
Expected behavior
Expected to see the terrain details while offline and with a high zoom level, just like we can while online. (see video below)
Notes / preliminary analysis
I've tried to pass in higher zoom, but no luck.
I'm not 100% sure, but I've also tried to use the OfflineRegionManager legacy API and this behaviour does not happen. I was able to clearly see the details of the terrain in high zoom levels.
Heres the tweaked code from the example:
Additional links and references
Video displaying the behaviour
The text was updated successfully, but these errors were encountered: