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

Missing linecap image for LineSymbolizer #2122

Closed
der-stefan opened this issue Jan 10, 2014 · 8 comments
Closed

Missing linecap image for LineSymbolizer #2122

der-stefan opened this issue Jan 10, 2014 · 8 comments
Milestone

Comments

@der-stefan
Copy link

For a better rendering of bridges, tunnel entrances or mountain passes, I miss the option to have a linecap image.
Done with GIMP, it could look like this:
brcke

@springmeyer
Copy link
Member

Using a MarkersSymbolizer on the first or last vertex would likely work so I presume this will be possible once #2295 lands. Let me know if you can test.

@springmeyer
Copy link
Member

also would be great to see a before image so I can tell exactly what you added in gimp.

@springmeyer springmeyer added this to the Mapnik 3.x milestone Jul 30, 2014
@der-stefan
Copy link
Author

Sorry, here is a before/after image as an animated gif:
brcke

@dieterdreist
Copy link

2014-07-30 11:09 GMT+02:00 der-stefan notifications@github.com:

Sorry, here is a before/after image as an animated gif:
[image: brcke]
https://cloud.githubusercontent.com/assets/3618939/3747040/3c0a366c-17c9-11e4-9455-4dfc34cb73b7.gif


Reply to this email directly or view it on GitHub
#2122 (comment).

this is nice. I think it could be interesting for the main style as well!

@dieterdreist
Copy link

sorry, was too fast. I think in real (osm) world scenarios this still will have some problems, because we tend to split ways for several reasons, e.g. with a maxspeed change in the middle of the bridge it would be split...

@der-stefan
Copy link
Author

You would need to have some kind of intelligent database queries to find the start node and end node of a bridge. By drawing the linecaps beneath the road with its outline, nothing could be hidden behind it.
I think this can be solved satisfactorily for real wold scenarios (like osm or our OpenTopoMap).

@springmeyer
Copy link
Member

#2338 has now landed in Mapnik 3.x / master. Please feel free to test this (the new vertex-first and vertex-last placement options for markers). Open new issues if you find anything needs improved.

@der-stefan
Copy link
Author

Thank you very much for this feature! This makes the rendering of bridges very nice.

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

3 participants