Shapes are loaded images

This commit is contained in:
Éric Lemoine
2013-11-26 15:23:55 +01:00
parent 189a859dde
commit b1a123a927

View File

@@ -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