From c36ad9377883e0b4821efccca2c7c699503d5221 Mon Sep 17 00:00:00 2001 From: kirkau Date: Mon, 13 Apr 2015 20:59:36 +1000 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df421aa..0548f02 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,13 @@ With a GeoJSON containing lines, it becomes: * `repeat` Specifies if the text should be repeated along the polyline (Default: `false`) * `center` Centers the text according to the polyline's bounding box (Default: `false`) -* `attributes` Object containing the attributes applied to the `text` tag. Check valid attributes [here](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text#Attributes) (Default: `{}`) * `below` Show text below the path (Default: false) +* `orientation` Rotate text. (Default: 0) + - orientation: - rotate to a specified angle (e.g. orientation: 15) + - orientation: flip - filps the text 180deg correction for upside down text placement on west -> east lines + - orientation: perpendicular - places text at right angles to the line. + +* `attributes` Object containing the attributes applied to the `text` tag. Check valid attributes [here](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text#Attributes) (Default: `{}`) Screenshot ----------