Merge pull request #6560 from geosense/featureloader_500_response
Don’t crash if feature loader xhr response returns 500
This commit is contained in:
commit
49af45c8b7
1 file changed
+6
@@ -64,6 +64,12 @@ ol.featureloader.loadFeaturesXhr = function(url, format, success, failure) {
|
||||
failure.call(this);
|
||||
}
|
||||
}.bind(this);
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
xhr.onerror = function() {
|
||||
failure.call(this);
|
||||
}.bind(this);
|
||||
xhr.send();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user