greensopinion / dart-vector-tile-renderer

A vector tile renderer for use in creating map tile images or writing to a canvas. Written in Dart to enable use of vector tiles with Flutter.
BSD 3-Clause "New" or "Revised" License
42 stars 24 forks source link

Rendering issues #70

Closed JosefWN closed 1 year ago

JosefWN commented 2 years ago

Hi, first of all, really cool project! Just tried out the flutter_map example with Mapbox and the Streets style.

I've seen some rendering issues:

Using Mapbox renderer:

Screenshot 2022-11-11 at 13 57 39

Using vector-tile-renderer:

Screenshot 2022-11-11 at 13 58 58
greensopinion commented 2 years ago

Thanks for the feedback!

Performance issues are definitely a challenge, especially in places that are data-rich such as Tokyo and LA. Did you run the app in release mode? The app makes use of isolates to improve frame rates, but only when run in release mode.

Road signs are rendered without the signs themselves (only white text which is hard to read without any background), I'm guessing this is because of lacking support for raster layer types?

That's right, the library doesn't have support for road signs yet.

Some labels are not rendered, for example the Baltimore label is never rendered, regardless of zoom level.

I'm not sure why that's happening.

If you strive for very similar looks, then I think highways and such (orange/yellow roads) have a thin white pixel border, similar to how text is rendered on the map.

It's possible that there is some unsupported syntax in the theme that you're using. You can find out about that by giving the theme reader a logger, you will see log output for each unsupported expression.

Feel free to make improvements!

JosefWN commented 2 years ago

Performance issues are definitely a challenge, especially in places that are data-rich such as Tokyo and LA. Did you run the app in release mode? The app makes use of isolates to improve frame rates, but only when run in release mode.

Tried both, maybe it will get better once Impeller is released. I've noticed Flutter/Skia struggle more on macOS/iOS than on Windows for example (although I haven't tried out this library specifically on other platforms than macOS).

Feel free to make improvements!

Cool! Will do if I start using the lib, currently just playing around :)

ibrierley commented 2 years ago

Also be aware skia is typically pretty slow on drawing scaled paths > 1px, and I assume most other implementations also use opengl when it comes to the lag issues (so it would be interesting if any of those lag free implementations don't use opengl behind the scenes). I am a little out of touch in recent developments though!

greensopinion commented 1 year ago

Closing since there's nothing actionable here.