Skip to content

Commit

Permalink
vl-source-vector: refresh source after url, loader changes
Browse files Browse the repository at this point in the history
fix #480
  • Loading branch information
ghettovoice committed Mar 2, 2022
1 parent b3db735 commit 1a73e4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mixins/vector-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
},
/**
Expand All @@ -540,6 +542,7 @@ export default {
if (loader !== this.currentLoader) {
this.currentLoader = loader
this.$source?.setLoader(loader)
this.refresh()
}
},
/**
Expand Down

0 comments on commit 1a73e4f

Please sign in to comment.