From b1a123a9273863e3479277ea7b0d6a9bcad7eee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 26 Nov 2013 15:23:55 +0100 Subject: [PATCH] Shapes are loaded images --- src/ol/shape.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/shape.js b/src/ol/shape.js index c225806686..7549a5ec00 100644 --- a/src/ol/shape.js +++ b/src/ol/shape.js @@ -9,6 +9,7 @@ goog.require('goog.dom.TagName'); goog.require('ol.color'); goog.require('ol.style.Fill'); goog.require('ol.style.Image'); +goog.require('ol.style.ImageState'); goog.require('ol.style.Stroke'); @@ -47,6 +48,7 @@ ol.shape.renderCircle = function(radius, fillStyle, strokeStyle) { anchor: [size / 2, size / 2], size: [size, size], image: canvas, + imageState: ol.style.ImageState.LOADED, rotation: 0, snapToPixel: undefined, subtractViewRotation: false