From ddb2786394abeb39f851cdf064f3816e8f7df128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 20 Nov 2013 14:49:18 +0100 Subject: [PATCH] Use new ol.style in synthetic-data example --- examples/synthetic-data.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/synthetic-data.js b/examples/synthetic-data.js index bfc5e7e4af..2664d4355d 100644 --- a/examples/synthetic-data.js +++ b/examples/synthetic-data.js @@ -7,6 +7,8 @@ goog.require('ol.geom.Point'); goog.require('ol.layer.Vector'); goog.require('ol.shape'); goog.require('ol.source.Vector'); +goog.require('ol.style.Fill'); +goog.require('ol.style.Stroke'); var count = 20000; @@ -23,12 +25,14 @@ for (var i = 0; i < count; ++i) { var styles = { '10': { - image: ol.shape.renderCircle( - 5, {color: '#666666'}, {color: '#bada55', width: 1}) + image: ol.shape.renderCircle(5, + new ol.style.Fill({color: '#666666'}), + new ol.style.Stroke({color: '#bada55', width: 1})) }, '20': { - image: ol.shape.renderCircle( - 10, {color: '#666666'}, {color: '#bada55', width: 1}) + image: ol.shape.renderCircle(10, + new ol.style.Fill({color: '#666666'}), + new ol.style.Stroke({color: '#bada55', width: 1})) } };