Add ol.webgl.Map.isImageTextureLoaded

This commit is contained in:
Tom Payne
2012-08-06 01:09:03 +02:00
parent 2a198bf255
commit 530724235a

View File

@@ -504,6 +504,15 @@ ol.webgl.Map.prototype.handleWebGLContextRestored = function() {
};
/**
* @param {Image} image Image.
* @return {boolean} Is image texture loaded.
*/
ol.webgl.Map.prototype.isImageTextureLoaded = function(image) {
return image.src in this.textureCache_[image.src];
};
/**
* @inheritDoc
*/