diff --git a/src/mixins/vector-source.js b/src/mixins/vector-source.js index 5b4dbc2a..18f2aa05 100644 --- a/src/mixins/vector-source.js +++ b/src/mixins/vector-source.js @@ -527,8 +527,10 @@ export default { if (url !== this.currentUrl) { this.currentUrl = url } + if (this.$source && url !== this.$source.getUrl()) { this.$source.setUrl(url) + this.refresh() } }, /** @@ -540,6 +542,7 @@ export default { if (loader !== this.currentLoader) { this.currentLoader = loader this.$source?.setLoader(loader) + this.refresh() } }, /**