Fix review for text justify

This commit is contained in:
Denis
2022-04-14 13:06:49 +02:00
parent 041b9a188a
commit 585ae66961
5 changed files with 3 additions and 10 deletions
+2 -4
View File
@@ -5,10 +5,8 @@ shortdesc: Example of text justification within a label.
docs: >
This example showcases how the text can be justified within the label box.
By default, the text is justified according to the `textAlign` option.
However, this option justifies the label itself according to the setting.
If one wants to change this behavior, it is possible to use the `justify` text style option.
For more information, see the discussion:
https://github.com/openlayers/openlayers/issues/13481
However, this option justifies also the label itself according to `textAlign` setting.
To decouple the label placement from text placement (within the label box) use `justify`.
tags: "vector, openstreetmap, label, rich-text"
---
<div id="map" class="map"></div>