-
-
Notifications
You must be signed in to change notification settings - Fork 72
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 vertical-align
in format expression
#900
Add vertical-align
in format expression
#900
Conversation
…-spec into issue-832-format-expression-vertical-align
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #900 +/- ##
==========================================
+ Coverage 92.75% 92.77% +0.01%
==========================================
Files 107 107
Lines 4706 4719 +13
Branches 1337 1343 +6
==========================================
+ Hits 4365 4378 +13
Misses 341 341 ☔ View full report in Codecov by Sentry. |
…-spec into issue-832-format-expression-vertical-align
I would like to cover questions from the meeting on Nov 13th: Using HTMLI did check, and it is possible to use HTML to display vertically aligned labels. This approach works for MapLibre GL JS, however it does not cover multiple platforms. There are more advantages of using format expression over custom HTML layer:
Format expression already gives possibility to create rich labels on the map, easily, without having to implement own custom solution. Having the possibility to align elements vertically in my opinion is good supplement to format expression. In some cases necessary to make full benefit from it. Sample use caseOur team created a sample mock how the labels look like with and without vertical alignment. |
Thanks for taking the time to work through these pieces @stanislawpuda-tomtom! In my opinion, those advantages are sufficient to merit including in the spec—especially for collision detection and performance reasons. |
I have changed |
Are you sure about the places where you added the code? |
@HarelM @lseelenbinder |
I've added details on my concerns regarding the current code. Let me know if this is clearer now. |
@HarelM It is clear - I'll cover them. Thank you! |
I answered your comments. |
Thanks, I'll look into it in the coming days. |
@louwers can you please review the v8 changes to make sure this is acceptable by you as well? |
@HarelM Will have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left two comments. LGTM otherwise.
Also thanks for asking the MapLibre Native community for their feedback. Appreciate it!
Answered. Thank you for your comments. |
@louwers need to approve this as he had some code review comments, I have approved it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes.
LGTM, but I still think some images would do the docs good. :)
@louwers @HarelM Btw I'm not sure where I should put images. I can place them in |
…-spec into issue-832-format-expression-vertical-align
Looks great! I personally prefer using GitHub for image hosting. We can replace the images with examples from actual maps when this is implemented. |
Done! |
@HarelM If you think it's better with the images, could you merge? |
Related issue #832.
This PR introduces vertical align property to format expression. It enables to specify how each section should be positioned in relation to biggest element in line. There are three possible options:
Launch Checklist
CHANGELOG.md
under the## main
section.