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 #7

Open
kaddrison opened this issue Dec 5, 2018 · 7 comments
Open

Street Names #7

kaddrison opened this issue Dec 5, 2018 · 7 comments

Comments

@kaddrison
Copy link

Using a MBtile file (UK) via Tileserver GL I get street names

Trying using the same style file and the same MBtile file with Vector Tile Render I dont get street names
See below
image
image

Is there anything I'm missing

Also can more than one layer be added - I have a MBTile with some buildings on it - can this be displayed at the same time

@charlenni
Copy link

Perhaps I could answer instead of @AliFlux .

This project isn't complete. The easier part of rendering a map are streets and areas. They should always be drawn. An other thing is drawing of street names, town names and places. They are drawn by importance. You have to get all this text, not only from the tile to render, but for all tiles surrounding this tile. Than you have to sort this text by importance and start to draw the most important one. Than check, if there is enough room to draw the second most important. If yes, than draw it. And so on. This isn't an easy process.

If you could display more than one layer depends on your map library.

@AliFlux
Copy link
Owner

AliFlux commented Dec 7, 2018

@charlenni is right. Displaying street names on a map is pretty complicated.

One other reason why this feature was disabled is because SkiaSharp doesn't correctly handle text that is bent along a path. It's also specified in the readme:

The text on lines/roads is intentionally disabled due to rendering issues with SkiaSharp.

However, you can enable the street names via commenting this line in SkiaCanvas.cs.

@kaddrison
Copy link
Author

Thanks for that - I see what you mean - can do without

Can't seem to get a second layer on - one I have drawn with some buildings on - can you recommend any software to make a layer / how to display ?

@charlenni
Copy link

Look into Mapsui. Should do, what you want.

@ftballguy45
Copy link

So will this project never support street names, etc?

@AliFlux
Copy link
Owner

AliFlux commented Sep 9, 2021

I have written an algorithm to figure out if SkiaSharp would draw street names correctly or not, so far it works fine in most cases. That is why I have enabled the street names

@kezara
Copy link

kezara commented Oct 22, 2021

I tried this version with names enabled, but not every street has a name, even some main roads are w/o name...could you please give any hint how to fix this?

edit: I noted that some names are upside down... just to mention, I worked with mbtiles made of serbia-latest.osm.pbf (downloaded from geofabrik) with tilemaker, all names are in cyrilic

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

5 participants