diff --git a/examples/vector-labels.css b/examples/vector-labels.css index 8009acb0f2..55f55ee105 100644 --- a/examples/vector-labels.css +++ b/examples/vector-labels.css @@ -35,3 +35,11 @@ h2 { .edit-form-elem select { width: 130px; } + +.edit-form br { + clear: left; +} + +.clearall { + clear: both; +} diff --git a/examples/vector-labels.html b/examples/vector-labels.html index 6a700229aa..10fbe57700 100644 --- a/examples/vector-labels.html +++ b/examples/vector-labels.html @@ -3,7 +3,10 @@ layout: example.html title: Vector Labels shortdesc: Example of GeoJSON features with labels. docs: > - **Note:** The 'Text/Wrap' option is currently not working properly. This is because ol3 uses Canvas's strokeText and fillText functions that do not support text wrapping. + This example showcases a number of options that can be set on text styles. + When "Text/Wrap" is chosen (for example for the line features), the label is + wrapped by inserting the character `\n`, which will create a multi-line + label. tags: "geojson, vector, openstreetmap, label" ---
@@ -274,3 +277,4 @@ tags: "geojson, vector, openstreetmap, label" +