ol.source.TileVector(): bind success function of tileLoadFunction to source

- fixes #3851
This commit is contained in:
Stephan Bösch-Plepelits
2015-06-29 18:20:02 +02:00
parent 7d04ef3e2d
commit ce20380078

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