Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Street names not correctly displayed at certain zoom-levels #7

Closed
FaFre opened this issue Jul 1, 2021 · 4 comments
Closed

Street names not correctly displayed at certain zoom-levels #7

FaFre opened this issue Jul 1, 2021 · 4 comments

Comments

@FaFre
Copy link
Contributor

FaFre commented Jul 1, 2021

I was exploring around on the map with the example application (native Linux).
Some street names are displayed incorrectly at certain zoom levels:

image

Is this a hard to tackle problem (I haven't had the time to look at the code or the rendering of the tiles s far...)?
Are there other known issues at the moment (I understand the package is in early stage)?

@greensopinion
Copy link
Owner

Thanks for the issue. What you're seeing is labels that are rendered at the edge of a tile, with some part of the label being rendered off-tile.

The easiest way to address this issue would be to change tile rendering so that labels are not rendered at the edge of a tile, either by skipping the label completely, by moving the label, or a combination.

Alternatively, we could look at eliminating clip around tiles so that labels can render over the edge of a tile. That would be a bigger change, and I'm not sure how it would work with transparency in the map theme.

A good place to get started is the dart-vector-tile-renderer project, which this project uses to render tiles.

As for known issues, this is one. Feel free to create more issues as you discover them.

@greensopinion
Copy link
Owner

If you're interested in contributing, this code is used to avoid rendering labels over top of each other: label_space.dart

@greensopinion
Copy link
Owner

I've made some improvements for horizontal labels but it's not corrected for all situations.

@greensopinion
Copy link
Owner

This issue should now be fully addressed with greensopinion/dart-vector-tile-renderer@e9ae79d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants