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

Text along lines: baseline is not taken into account when rendering stroke #7276

Closed
3 of 4 tasks
brncsk opened this issue Sep 20, 2017 · 1 comment
Closed
3 of 4 tasks

Comments

@brncsk
Copy link

brncsk commented Sep 20, 2017

Thank you for your interest in making OpenLayers better!

To keep this project manageable for maintainers, we ask you to please check all boxes below before submitting an issue.

  • I am submitting a bug or feature request, not a usage question. Go to https://stackoverflow.com/questions/tagged/openlayers for questions.
  • I have searched GitHub to see if a similar bug or feature request has already been reported.
  • I have verified that the issue is present in the latest version of OpenLayers (see 'LATEST' on https://openlayers.org/).
  • If reporting a bug, I have created a CodePen or prepared a stack trace (using the latest version and unminified code, so e.g. ol-debug.js, not ol.js) that shows the issue. – Not applicable.

When rendering labels along lines (introduced in #7239) in tandem with a non-default textBaseline property and a stroke, the stroke gets rendered as if the baseline was not set (see attached screenshot).

new ol.style.Text({
  placement: 'line',
  textBaseline: 'top',
  stroke: new ol.style.Stroke({
    width: 2,
    color: 'white'
  })
})

screen shot 2017-09-20 at 14 05 33

@ahocevar
Copy link
Member

Thanks for reporting this issue. See #7287 for a fix.

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

2 participants