From 1971ddafaa5697ea41462c0965ade50626a57fea Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 24 Mar 2017 13:21:47 -0400 Subject: [PATCH] Support more line features from geojson properties. --- src/jsonReader.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jsonReader.js b/src/jsonReader.js index 8a9a5249f1..80eedc6a4b 100644 --- a/src/jsonReader.js +++ b/src/jsonReader.js @@ -257,7 +257,11 @@ var jsonReader = function (arg) { .style({ strokeColor: m_this._style('strokeColor', '#ff7800', lines, convertColor), strokeWidth: m_this._style('strokeWidth', 4, lines), - strokeOpacity: m_this._style('strokeOpacity', 0.5, lines) + strokeOpacity: m_this._style('strokeOpacity', 0.5, lines), + strokeOffset: m_this._style('strokeOffset', 0, lines), + lineCap: m_this._style('lineCap', 'butt', lines), + lineJoin: m_this._style('lineCap', 'miter', lines), + closed: m_this._style('closed', false, lines) }) ); }