Merge pull request #3856 from plepe/bug-3851

ol.source.TileVector(): bind success function of tileLoadFunction to source
This commit is contained in:
Andreas Hocevar
2015-06-29 22:35:15 +03:00

View File

@@ -309,7 +309,7 @@ ol.source.TileVector.prototype.loadFeatures =
tiles[tileKey] = [];
var tileSuccess = goog.partial(success, tileKey);
if (!goog.isNull(this.tileLoadFunction_)) {
this.tileLoadFunction_(url, tileSuccess);
this.tileLoadFunction_(url, goog.bind(tileSuccess, this));
} else {
var loader = ol.featureloader.loadFeaturesXhr(url,
/** @type {ol.format.Feature} */ (this.format_), tileSuccess);