From 1a73e4fe897c03d14ec05ead9e01b896d311bc36 Mon Sep 17 00:00:00 2001 From: Vladimir Vershinin Date: Wed, 2 Mar 2022 12:35:19 +0300 Subject: [PATCH] vl-source-vector: refresh source after `url`, `loader` changes fix #480 --- src/mixins/vector-source.js | 3 +++ 1 file changed, 3 insertions(+) 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() } }, /**