Allow different source and view projection in image layer renderers

To enable image layer reprojection.
This commit is contained in:
Petr Sloup
2015-06-11 16:28:19 +02:00
parent be0a0de759
commit ed1e49045a
4 changed files with 24 additions and 17 deletions
+3 -2
View File
@@ -159,8 +159,9 @@ ol.renderer.Layer.prototype.loadImage = function(image) {
if (imageState == ol.ImageState.IDLE) {
image.load();
imageState = image.getState();
goog.asserts.assert(imageState == ol.ImageState.LOADING,
'imageState is "loading"');
goog.asserts.assert(imageState == ol.ImageState.LOADING ||
imageState == ol.ImageState.LOADED,
'imageState is "loading" or "loaded"');
}
return imageState == ol.ImageState.LOADED;
};