From 7d9b09b4acd96a99af0bcd969097731a3e0d21ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 20 Nov 2013 14:49:28 +0100 Subject: [PATCH] Use new ol.style in synthetic-lines example --- examples/synthetic-lines.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/synthetic-lines.js b/examples/synthetic-lines.js index 1c1838433e..3ca961cb52 100644 --- a/examples/synthetic-lines.js +++ b/examples/synthetic-lines.js @@ -5,6 +5,8 @@ goog.require('ol.View2D'); goog.require('ol.geom.LineString'); goog.require('ol.layer.Vector'); goog.require('ol.source.Vector'); +goog.require('ol.style.Stroke'); +goog.require('ol.style.Style'); var count = 10000; @@ -40,12 +42,12 @@ var vector = new ol.layer.Vector({ features: features }), styleFunction: function(feature) { - return { - stroke: { + return new ol.style.Style({ + stroke: new ol.style.Stroke({ color: '#666666', width: 1 - } - }; + }) + }); } });