Mark ol.style.Icon#load() @api

We currently rely on the renderer to load the styles it intents to use.

In Ol3-Cesium we want to allow different styles for 3D and for 2D.
This commit fixes the issue by allowing application code to explicitely
initiate the loading process.
This commit is contained in:
Guillaume Beraudo
2015-08-07 11:56:11 +02:00
parent 861e1515d4
commit 464ce13b13

View File

@@ -347,6 +347,10 @@ ol.style.Icon.prototype.listenImageChange = function(listener, thisArg) {
/**
* Load not yet loaded URI.
* When rendering a feature with an icon style, the vector renderer will
* automatically call this method. However, you might want to call this
* method yourself for preloading or other purposes.
* @api
*/
ol.style.Icon.prototype.load = function() {
this.iconImage_.load();