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

Support for format expression vertical-align property #3055

Open
stanislawpuda-tomtom opened this issue Nov 28, 2024 · 0 comments
Open

Support for format expression vertical-align property #3055

stanislawpuda-tomtom opened this issue Nov 28, 2024 · 0 comments

Comments

@stanislawpuda-tomtom
Copy link

Is your feature request related to a problem? Please describe.
maplibre-style-spec issue
maplibre-gl-js PR

This is about to introduces support for vertical-align property in format expression.

Implementation should follow maplibre-gl-js.

Describe the solution you'd like

vertical-align property in format expression enables to specify how each section should be positioned in relation to biggest element in line. There are three possible options:

  • "bottom" default: text baseline or image bottom are in line - this is current behaviour.
  • "center": image center or text center are in line.
  • "top": image top and text top are in

Describe alternatives you've considered

An HTML layer for maplibre-gl-js (or equivalent for other renderers) was considered, but was dropped due to:

  • performance limitation
  • lack of label collision support
  • more difficult to use
  • not multi-platform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants