Dispatch change events instead of load events when sources change
This commit is contained in:
@@ -140,7 +140,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse =
|
|||||||
|
|
||||||
this.ready_ = true;
|
this.ready_ = true;
|
||||||
|
|
||||||
this.dispatchLoadEvent();
|
this.dispatchChangeEvent();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ ol.source.TileJSON.prototype.handleTileJSONResponse = function() {
|
|||||||
|
|
||||||
this.ready_ = true;
|
this.ready_ = true;
|
||||||
|
|
||||||
this.dispatchLoadEvent();
|
this.dispatchChangeEvent();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user