Closed kuromimi closed 1 year ago
This usually happens when some tiles have different (higher) quality settings. This library is designed to reuse the memory allocated for bitmaps, but this works as long as all bitmaps require the same amount of memory (or, in other words, have the same quality settings). I would refer to this issue. Even though this about another library, the idea is the same.
Pierre, Thank you for the comment. The map data is owned by Geospatial Information Authority of Japan; no chance to update data. OK, closing the topic.
In this case, I've thought of a way to not use Bitmap reuse when this kind of issue happens. This is less performant but better than what we have now. I've pushed the change in the branch try-fix-#40. As per my tests, it fixes your issue. If you can confirm, I can make a new version with that change.
Pierre, Thanks for the update. Tried the change with scroll/zoom-in/out on the map config having more zoom level (max=17). I confirmed no map block failed to load at all! I still see the warning message, but it is because of reload. Understood.
D URL http://cyberjapandata.gsi.go.jp/xyz/std/8/227/102.png W bitmap marked for reuse (131072 bytes) can't fit new bitmap (262144 bytes) D URL http://cyberjapandata.gsi.go.jp/xyz/std/8/227/102.png
I see those reloads on worldmap only (level < 9); reloading shouldnot be much of a problem on actual use case, I think. Thank you for the fix!
Alright! The new 3.1.5 version should be available on maven soon. Thanks for the feedback.
Hello, With the code below (modified based on RemoteHttpFragment.kt), I got bitmap load error:
As the screenshot, the mid center of the US continental failed to load. I am using MapView3.4.1. Any thoughts?