Coder Social home page Coder Social logo

Comments (5)

p-lr avatar p-lr commented on August 26, 2024

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.

from mapview.

kuromimi avatar kuromimi commented on August 26, 2024

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.

from mapview.

p-lr avatar p-lr commented on August 26, 2024

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.

from mapview.

kuromimi avatar kuromimi commented on August 26, 2024

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!

from mapview.

p-lr avatar p-lr commented on August 26, 2024

Alright!
The new 3.1.5 version should be available on maven soon.
Thanks for the feedback.

from mapview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.