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

Road names don't fit into symbols #8

Open
FewKinG opened this issue Feb 15, 2012 · 7 comments
Open

Road names don't fit into symbols #8

FewKinG opened this issue Feb 15, 2012 · 7 comments

Comments

@FewKinG
Copy link

FewKinG commented Feb 15, 2012

Hey,
I'm using the mapquest (non-hybrid) eu style to render maps of Germany with mapnik2. I did not modify the styles (except for the templates to match my render setup). But for me the street names for larger roads which should fit into the square road symbols are positioned incorrectly and rotated to match the direction of the road (which they shouldn't be) as you can see here:

http://imageshack.us/photo/my-images/687/mapqueststyle.png/

I don't know whats wrong there, can you help me out a bit?

@springmeyer
Copy link

This may be a mapnik regression - likely not a problem with the stylesheet. What mapnik version are you using? /cc @herm

@FewKinG
Copy link
Author

FewKinG commented Feb 15, 2012

I'm running on ubuntu 10.04 and am using the nightly build packages (mapnik2.0). I know these are prone to errors as they are not actual releases. So this might very well be an error or change on their side. Maybe I should try to build from the stable release and report back to you.

@herm
Copy link

herm commented Feb 15, 2012

Could be related to mapnik/mapnik#1078.

@springmeyer
Copy link

Okay, right if you are using the nighties that means you are running code that includes a very recent large refactoring of text placement. You likely want to follow mapnik/mapnik#1078 which I think is related and should be fixed shortly.

@FewKinG
Copy link
Author

FewKinG commented Feb 20, 2012

The referenced issue (1078) is not exactly related. It pointed me to the solution though. I had to change the placement attribute in the ShieldSymbolizers from
placement="line" (which aligns the text with the road)
to
placement="point"

This makes sense to me and I wonder if this also only changed in one of the later releases. Any idea if these adjustments should be applied to the mapquest repository?

@herm
Copy link

herm commented Feb 20, 2012

Should be fixed in mapnik/a05faceb11d1798eb708b1b0e23c08af51896f0a.

@FewKinG
Copy link
Author

FewKinG commented Feb 21, 2012

Ah okay, thanks a lot for your efforts. I will try out tonight's build tomorrow.

yiqingj pushed a commit to yiqingj/work that referenced this issue Nov 5, 2013
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