ry-vue-map 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +1 -1
- package/lib/ryui.common.js +54 -45
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.css.gz +0 -0
- package/lib/ryui.umd.js +54 -45
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +4 -4
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/components/maps/ryLines/src/index.vue +14 -7
package/lib/ryui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<button class="button-stop" @click.stop="onStopTrajectory()" v-else></button>
|
|
8
8
|
</el-col>
|
|
9
9
|
<el-col style="margin-left: 30px;" :xs="13" :sm="19" :md="19" :lg="19" :xl="23">
|
|
10
|
-
<el-slider v-model="index" :marks="marks" show-tooltip :step="1" :min="0" :max="cacheArr.length"
|
|
10
|
+
<el-slider v-model="index" :marks="marks" show-tooltip :step="1" :min="0" :max="cacheArr.length - 1"
|
|
11
11
|
@change="sliderChange" :format-tooltip="formatTooltip"></el-slider>
|
|
12
12
|
</el-col>
|
|
13
13
|
</el-row>
|
|
@@ -402,7 +402,14 @@
|
|
|
402
402
|
}
|
|
403
403
|
this.intervalId = setInterval(r => {
|
|
404
404
|
|
|
405
|
-
if (this.index >= this.len - 1
|
|
405
|
+
if (this.index >= this.len - 1 || !this.isPlayback) {
|
|
406
|
+
|
|
407
|
+
const line = this.cacheLines[this.cacheLines.length - 1];
|
|
408
|
+
const points = this.cacheArr[this.index];
|
|
409
|
+
this.setMarkerPoint(this.moveMarker, points);
|
|
410
|
+
line.appendCoordinate(points, this.gpsType);
|
|
411
|
+
this.$emit('trackPlayEvent',{index:this.index,points});
|
|
412
|
+
|
|
406
413
|
this._clearInterval();
|
|
407
414
|
this.index=0;
|
|
408
415
|
this.isStop = false;
|
|
@@ -473,6 +480,7 @@
|
|
|
473
480
|
const arr =[];
|
|
474
481
|
const _points=[...points];
|
|
475
482
|
if(keys.length <=1 ){
|
|
483
|
+
|
|
476
484
|
const key=keys[0];
|
|
477
485
|
const {width,zIndex}=this.cacheModelArr.get(key);
|
|
478
486
|
arr.push({
|
|
@@ -480,13 +488,12 @@
|
|
|
480
488
|
color:this.cacheColors.get(key),
|
|
481
489
|
width,
|
|
482
490
|
zIndex,
|
|
483
|
-
pointArr:_points.splice(0,step)
|
|
491
|
+
pointArr:_points.splice(0,step + 1)
|
|
484
492
|
});
|
|
485
493
|
return arr;
|
|
486
494
|
}
|
|
487
495
|
|
|
488
496
|
for(let i=0;i< keys.length;i++){
|
|
489
|
-
|
|
490
497
|
const key=keys[i];
|
|
491
498
|
const {width,zIndex}=this.cacheModelArr.get(key);
|
|
492
499
|
const pointArr=_points.splice(0,this.cacheLenArr[i]);
|
|
@@ -512,14 +519,14 @@
|
|
|
512
519
|
this.$emit('trackPlayEvent',{index:val,points:this.cacheArr[0] });
|
|
513
520
|
return;
|
|
514
521
|
}
|
|
515
|
-
const points= this.cacheArr.slice(0,val);
|
|
522
|
+
const points= this.cacheArr.slice(0,val + 1);
|
|
516
523
|
const arr = this.createLineModels(this.getKeys(val),points,val);
|
|
517
524
|
arr.forEach(r=> this._insertLineAndMarker2(r,false));
|
|
518
525
|
if(points.length){
|
|
519
|
-
this.$emit('trackPlayEvent',{index:val,points:points[points.length-1] });
|
|
526
|
+
this.$emit('trackPlayEvent',{index:val,points:points[points.length - 1] });
|
|
520
527
|
}
|
|
521
528
|
if (this.moveMarkerDto && !this.moveMarker && points.length) {
|
|
522
|
-
this.moveMarker = this.createStartMarker(this.moveMarkerDto, points[points.length-1]);
|
|
529
|
+
this.moveMarker = this.createStartMarker(this.moveMarkerDto, points[points.length - 1]);
|
|
523
530
|
return;
|
|
524
531
|
}
|
|
525
532
|
|