244: vue+openlayers displays the line segment Line with scrolling effect

Insert image description here

244th

Click to view column directory


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.

Example effect

</

Guess you like

Origin blog.csdn.net/cuclife/article/details/133276135