Merge pull request #12394 from mike-000/patch-7
Ensure VectorSource getUrl() corresponds to last setUrl()
This commit is contained in:
@@ -1054,6 +1054,7 @@ class VectorSource extends Source {
|
|||||||
*/
|
*/
|
||||||
setUrl(url) {
|
setUrl(url) {
|
||||||
assert(this.format_, 7); // `format` must be set when `url` is set
|
assert(this.format_, 7); // `format` must be set when `url` is set
|
||||||
|
this.url_ = url;
|
||||||
this.setLoader(xhr(url, this.format_));
|
this.setLoader(xhr(url, this.format_));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user