Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Sep 6, 2019
2 parents ae181f5 + 57a2734 commit fb88599
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 17 deletions.
17 changes: 11 additions & 6 deletions dist/VueMapboxGl.common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.common.js.map

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions dist/VueMapboxGl.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.umd.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/vue-mapbox-gl",
"version": "1.0.6",
"version": "1.0.7",
"scripts": {
"build": "vue-cli-service build --target lib --name VueMapboxGl src/index.js && rm ./dist/demo.html",
"test": "vue-cli-service test:unit",
Expand Down
5 changes: 5 additions & 0 deletions src/components/MapboxSource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
required: true,
},
},
watch: {
'options.data': function watchOptionsData(newData) {
this.map.getSource(this.id).setData(newData);
},
},
mounted() {
this.map.addSource(this.id, this.options);
},
Expand Down

0 comments on commit fb88599

Please sign in to comment.