244th
The purpose of this example is to introduce how to draw a line segment with a scrolling effect in the vue+openlayers project. The idea is to first draw a straight line, then draw a dashed line segment with a small dot, and change the value of DashOffset through setInterval to generate an animation effect.
Directly copy the vue+openlayers source code below and run it in 2 minutes to achieve the effect.