Points













Lines













Polygons













Vector labels example

Example of GeoJSON features with labels.

See the vector-labels.js source to see how this is done.

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.

geojson, vector, openstreetmap, label