日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > vue >内容正文

vue

openlayers+vue水流图

發布時間:2023/12/20 vue 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 openlayers+vue水流图 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

#vue 水流圖

dows() {var line = new LineString([[118.507906, 31.689362],[118.707906, 31.689362]]);//第二個直線數據,手動添加的位置數據var source = new VectorSource({wrapX: false});var outlineStroke = new Style({stroke: new Stroke({color: [25, 25, 255, 1],width: 10})});function getAnimationStrokeStyle() {return new Style({// geometry: new Point([118.507906, 31.689362]),// image: new Icon({// src: // "https://img2.baidu.com/it/u=1814268193,3619863984&fm=253&fmt=auto&app=138&f=JPEG?w=632&h=500",// opacity: 1,// anchor: [0.5, 0.5],// rotateWithView: true,// rotation: feature.get("dashOffset"),// scale: 0.1// })stroke: new Stroke({color: [255, 255, 255, 1],width:3,lineDash: [20,27], //一組線段和間距交互的數組,可以控制虛線的長度lineDashOffset: feature.get("dashOffset") //偏移量,控制虛線的速度和方向})});}//手動添加數據的矢量數據var feature = new Feature({geometry: line,finished: false,dashOffset: -8});function getStyle() {return [outlineStroke, getAnimationStrokeStyle()];}feature.setStyle(getStyle());source.addFeature(feature);var flightsLayer = new VectorLayer({source: source,zIndex:10});this.icingMap.addLayer(flightsLayer);setInterval(() => {let offset1 = feature.get("dashOffset");offset1 = offset1 + 1;feature.set("dashOffset", offset1);feature.setStyle(getStyle());}, 10);},

總結

以上是生活随笔為你收集整理的openlayers+vue水流图的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。