Merge pull request #3856 from plepe/bug-3851
ol.source.TileVector(): bind success function of tileLoadFunction to source
This commit is contained in:
@@ -309,7 +309,7 @@ ol.source.TileVector.prototype.loadFeatures =
|
|||||||
tiles[tileKey] = [];
|
tiles[tileKey] = [];
|
||||||
var tileSuccess = goog.partial(success, tileKey);
|
var tileSuccess = goog.partial(success, tileKey);
|
||||||
if (!goog.isNull(this.tileLoadFunction_)) {
|
if (!goog.isNull(this.tileLoadFunction_)) {
|
||||||
this.tileLoadFunction_(url, tileSuccess);
|
this.tileLoadFunction_(url, goog.bind(tileSuccess, this));
|
||||||
} else {
|
} else {
|
||||||
var loader = ol.featureloader.loadFeaturesXhr(url,
|
var loader = ol.featureloader.loadFeaturesXhr(url,
|
||||||
/** @type {ol.format.Feature} */ (this.format_), tileSuccess);
|
/** @type {ol.format.Feature} */ (this.format_), tileSuccess);
|
||||||
|
|||||||
Reference in New Issue
Block a user