From 41ec0fd79bf363aa00bfe8f365c5ac1cde383c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 18 Dec 2013 22:40:22 +0100 Subject: [PATCH] Example igc uses ol.style.Circle --- examples/igc.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/examples/igc.js b/examples/igc.js index a0c5f6fad4..6275e3f808 100644 --- a/examples/igc.js +++ b/examples/igc.js @@ -8,9 +8,9 @@ goog.require('ol.geom.Point'); goog.require('ol.layer.Tile'); goog.require('ol.layer.Vector'); goog.require('ol.proj'); -goog.require('ol.shape'); goog.require('ol.source.OSM'); goog.require('ol.source.Vector'); +goog.require('ol.style.Circle'); goog.require('ol.style.Stroke'); goog.require('ol.style.Style'); @@ -128,10 +128,14 @@ map.on('singleclick', function(evt) { displaySnap(coordinate); }); -var imageStyle = ol.shape.renderCircle(5, null, new ol.style.Stroke({ - color: 'rgba(255,0,0,0.9)', - width: 1 -})); +var imageStyle = new ol.style.Circle({ + radius: 5, + fill: null, + stroke: new ol.style.Stroke({ + color: 'rgba(255,0,0,0.9)', + width: 1 + }) +}); var strokeStyle = new ol.style.Stroke({ color: 'rgba(255,0,0,0.9)', width: 1