From 5efc692b9d8bb8c98ed054960fbd1647d98b8738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 8 Jan 2014 00:44:00 +0100 Subject: [PATCH] Add typecast to icon example --- examples/icon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/icon.js b/examples/icon.js index c97aca9a3b..35b4da967f 100644 --- a/examples/icon.js +++ b/examples/icon.js @@ -18,12 +18,12 @@ var raster = new ol.layer.Tile({ }); var styleArray = [new ol.style.Style({ - image: new ol.style.Icon({ + image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ ({ anchor: [0.5, 46], anchorXUnits: 'fraction', anchorYUnits: 'pixels', src: 'data/icon.png' - }) + })) })]; var vector = new ol.layer.Vector({