Update vector label example

This commit is contained in:
tsauerwein
2015-12-11 10:14:02 +01:00
parent b0b202f112
commit 43e1c86b6e
2 changed files with 13 additions and 1 deletions

View File

@@ -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"
---
<div id="map" class="map"></div>
@@ -274,3 +277,4 @@ tags: "geojson, vector, openstreetmap, label"
<input type="text" value="3" id="polygons-outline-width" />
</div>
</div>
<div class="clearall"></div>