Merge pull request #3977 from gberaudo/mark_ol_style_icon_load_api

Mark ol.style.Icon#load() @api
This commit is contained in:
Éric Lemoine
2015-08-07 16:33:17 +02:00

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();