From b864fe0ecaa58c5d81ee08690916b84dfa006333 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 19 Apr 2017 21:14:10 +0200 Subject: index.html: Increase feature stroke width Make it easier to see the inputted geometry features. --- index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 594159e..7be2880 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,13 @@ var format = new ol.format.WKT(); + var vector_style = new ol.style.Style({ + stroke: new ol.style.Stroke({ + color: '#0091ff', + width: 5 + }) + }); + var map = new ol.Map({ layers: [raster], target: 'map', @@ -72,8 +79,9 @@ wkt_layer = new ol.layer.Vector({ source: new ol.source.Vector({ features: wkt_features - }) - }) + }), + style: vector_style + }); map.addLayer(wkt_layer); }; -- cgit v1.2.3