Add getters to ol.style.Style

This commit is contained in:
Éric Lemoine
2013-12-19 11:32:57 +01:00
parent fe7b614f22
commit 1e24ec28be
5 changed files with 82 additions and 27 deletions

View File

@@ -244,7 +244,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFeature =
var i, ii, style, imageStyle, imageState;
for (i = 0, ii = styles.length; i < ii; ++i) {
style = styles[i];
imageStyle = style.image;
imageStyle = style.getImage();
if (!goog.isNull(imageStyle)) {
if (imageStyle.imageState == ol.style.ImageState.IDLE) {
goog.events.listenOnce(imageStyle, goog.events.EventType.CHANGE,