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

Add ability to set anchors/offsets for lines and pathtexts #7952

Open
pastk opened this issue Apr 18, 2024 · 2 comments
Open

Add ability to set anchors/offsets for lines and pathtexts #7952

pastk opened this issue Apr 18, 2024 · 2 comments
Labels
Drape Drape OpenGL, Vulkan and Metal graphics rendering engine Styles Map drawing styles

Comments

@pastk
Copy link
Contributor

pastk commented Apr 18, 2024

It'll be helpful for many cases, e.g.

Similar for pathtexts, we'd want to render area's name on the inner side of the border.

Basically its enough to have an anchor: left/right attrib. If its present the renderer should offset the line so that it runs exactly to the left/right of the "main" line (if present) or the default centerline.
If we add an ability to set both an anchor and an offset value, then it'd be possible to render slightly separated lines or partially overlapping ones, e.g.
image
Fancy steps? :) (two offset short dashed thick lines) But maybe we don't need this flexibility.

FYI @vng

@pastk pastk added Drape Drape OpenGL, Vulkan and Metal graphics rendering engine Styles Map drawing styles labels Apr 18, 2024
@pastk
Copy link
Contributor Author

pastk commented Apr 18, 2024

It might be tricky for thicker lines though (e.g. for "fading" borders)
The turns might not look good unless specially processed
image

@pastk
Copy link
Contributor Author

pastk commented Apr 19, 2024

If we add an ability to set both an anchor and an offset value, then it'd be possible to render slightly separated lines or partially overlapping ones, e.g.

We'll need it to display cycleways over left or right sides of roads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Drape Drape OpenGL, Vulkan and Metal graphics rendering engine Styles Map drawing styles
Projects
None yet
Development

No branches or pull requests

1 participant