Maps SDK Version: 11.6.0 (both on Compose, and Views)
Observed behavior and steps to reproduce
This is a problem, because the screen density may change at runtime. If an app downloads a tile region with the screen density at the time of download and if the screen density changes later, the downloaded region wont be able to show
To reproduce, download the style pack and tile region as in the example. One can modify the OfflineActivity example to easier reproduce the problem (go to OfflineActivity sample, line 225, and set the value to 1.0f and execute on a device with a pixel ratio different than 1.0f). The following code shows how to reproduce on Compose :
@bamsbamx can you provide a bit more context how can screen density change in runtime? This seems to be more of a hardware property and usually should be set as context.resources.displayMetrics.density.
Environment
Observed behavior and steps to reproduce
This is a problem, because the screen density may change at runtime. If an app downloads a tile region with the screen density at the time of download and if the screen density changes later, the downloaded region wont be able to show
To reproduce, download the style pack and tile region as in the example. One can modify the OfflineActivity example to easier reproduce the problem (go to OfflineActivity sample, line 225, and set the value to 1.0f and execute on a device with a pixel ratio different than 1.0f). The following code shows how to reproduce on Compose :
Expected behavior
The map tiles should show correctly
Notes / preliminary analysis
Additional links and references