Git Product home page Git Product logo

Comments (3)

ibrierley avatar ibrierley commented on September 26, 2024

Heya. I think I had similar problems with my original version. There seemed to be 2 main causes, 1) was obviously nothing to show :). The 2nd one was sometimes flutter seemed to miss several frames between swapping in the transparent image fallback It felt like a swap in widget "types" was the cause (as thought it couldn't transition nicely from a canvas to an image or back), and I ended up with some convoluted solution holding back the old tile canvas. It almost felt like I was having a backup for the transparent tile :D.

I'm not sure what entirely to suggest there (I got around it with my own separate system, rather than within the current tile system). So just out of interest, I ended up giving up on the whole flutter_map tile loading and doing my own. I always felt like I was fighting it too much (but I also feel this strays from leaflet design so you may not like that approach). I may be straying though, and missed what the problem is in your case.

I didn't like the idea of pinchzooming when having to draw backup canvas (and redrawing the paths), and the current paths, it felt too much, so I tried to come up with a solution that only loaded desired tiles if necessary. In the latest version I also swapped from multiple separate tile canvases to one large canvas which is full screen (+ allow for rotation), and simply drawing direct onto that canvas. Juries out which is the better setup, but I prefer to work with this method. Note, you can also draw images onto the canvas, so you can draw normal raster tiles onto the canvas as well! Works pretty much as well as the normal method for raster tiles and you don't need positioned Widgets etc.

Just as an aside, I think when I looked at the last version there were hairline gaps between the tiles. I think I had similar, which was typically either anti-aliasing needed turning off, or rounding on the tile/canvas positioning.

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on September 26, 2024

Thanks for the ideas

Just as an aside, I think when I looked at the last version there were hairline gaps between the tiles. I think I had similar, which was typically either anti-aliasing needed turning off, or rounding on the tile/canvas positioning.

I'm tracking this as issue #4

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on September 26, 2024

Done.

from flutter-vector-map-tiles.

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.