-
Notifications
You must be signed in to change notification settings - Fork 52
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
Comments
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. |
@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:
However, you can enable the street names via commenting this line in SkiaCanvas.cs. |
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 ? |
Look into Mapsui. Should do, what you want. |
So will this project never support street names, etc? |
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 |
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 |
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
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
The text was updated successfully, but these errors were encountered: