Skip to content

Commit f8a5aa5

Browse files
committed
boa
1 parent c53f1b7 commit f8a5aa5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pages/index.vue

+7-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,13 @@ export default {
373373
max: this.max || 0
374374
}
375375
})
376-
this.$refs.noUiSlider.noUiSlider.on('update', ([from, to]) => { this.currentTime = to })
376+
this.$refs.noUiSlider.noUiSlider.on('update', ([from, to]) => {
377+
this.currentTime = to
378+
const start = closest(this.timestamps, from)
379+
if (start && map.getSource('route')) {
380+
map.getSource('route').setData(lineString(this.path.slice(start)))
381+
}
382+
})
377383
},
378384
methods: {
379385
updateSlider () {

0 commit comments

Comments
 (0)