Skip to content

Commit

Permalink
boa
Browse files Browse the repository at this point in the history
  • Loading branch information
jcardus committed Feb 16, 2024
1 parent c53f1b7 commit f8a5aa5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,13 @@ export default {
max: this.max || 0
}
})
this.$refs.noUiSlider.noUiSlider.on('update', ([from, to]) => { this.currentTime = to })
this.$refs.noUiSlider.noUiSlider.on('update', ([from, to]) => {
this.currentTime = to
const start = closest(this.timestamps, from)
if (start && map.getSource('route')) {
map.getSource('route').setData(lineString(this.path.slice(start)))
}
})
},
methods: {
updateSlider () {
Expand Down

0 comments on commit f8a5aa5

Please sign in to comment.