Merge pull request #12394 from mike-000/patch-7

Ensure VectorSource getUrl() corresponds to last setUrl()
This commit is contained in:
Tim Schaub
2021-06-14 08:56:09 -06:00
committed by GitHub

View File

@@ -1054,6 +1054,7 @@ class VectorSource extends Source {
*/
setUrl(url) {
assert(this.format_, 7); // `format` must be set when `url` is set
this.url_ = url;
this.setLoader(xhr(url, this.format_));
}
}