ry-vue-map 0.4.6 → 0.4.7

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ry-vue-map",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "private": false,
5
5
  "main": "lib/ryui.umd.min.js",
6
6
  "description": "ry公共组件库",
@@ -401,11 +401,12 @@
401
401
  this.createTrackLineAndMarker(this.cacheScales[0],0);
402
402
  }
403
403
  this.intervalId = setInterval(r => {
404
- if (this.index >= this.len || !this.isPlayback) {
404
+
405
+ if (this.index >= this.len - 1 || !this.isPlayback) {
405
406
  this._clearInterval();
406
407
  this.index=0;
407
408
  this.isStop = false;
408
- this.$emit('trackPlayEvent',{index:this.index,points:[] });
409
+ this.$emit('trackPlayEvent',{index:this.index,points:this.cacheArr[0] });
409
410
  return;
410
411
  }
411
412
  const key=this.getKey(this.index);
@@ -416,7 +417,7 @@
416
417
  this.cacheLineMaps.set(key,line);
417
418
  const _index=this.index - 1 == -1 ? 0 : this.index-1;
418
419
  line.appendCoordinate(this.cacheArr[_index], this.gpsType);
419
- this.$emit('trackPlayEvent',{index:this.index, points:this.cacheArr[_index] });
420
+ // this.$emit('trackPlayEvent',{index:this.index, points:this.cacheArr[_index] });
420
421
  }
421
422
  }
422
423
  const line = this.cacheLines[this.cacheLines.length - 1];
@@ -498,7 +499,6 @@
498
499
  };
499
500
  arr.push(model);
500
501
  // if( i > 1 &&i <keys.length-1){
501
- // // console.log(points[key-1]);
502
502
  // this._insertPoint(model,points[key-1]);
503
503
  // }
504
504
 
@@ -509,7 +509,7 @@
509
509
  sliderChange(val) {
510
510
  this.endPlaybackLines();
511
511
  if (val === 0) {
512
- this.$emit('trackPlayEvent',{index:val,points:[] });
512
+ this.$emit('trackPlayEvent',{index:val,points:this.cacheArr[0] });
513
513
  return;
514
514
  }
515
515
  const points= this.cacheArr.slice(0,val);
@@ -160,7 +160,6 @@
160
160
  }
161
161
  },
162
162
  loadMap(el) {
163
- // const dto =
164
163
  this.lMap.init({
165
164
  el,
166
165
  type: this.mapType,
@@ -176,7 +175,8 @@
176
175
  try {
177
176
  const [x, y] = this.lMap.getCenter();
178
177
  this.lastX = x;
179
- this.lastY = y;
178
+ this.lastY = y;s
179
+ // alert(this.)
180
180
  } catch (err) {
181
181
 
182
182
  }
@@ -159,4 +159,4 @@
159
159
  width: 100%;
160
160
  position: relative;
161
161
  }
162
- </style>
162
+ </style>
@@ -11,8 +11,8 @@ Vue.use(VueRouter);
11
11
  const routes = [
12
12
  {
13
13
  path: '/',
14
- // component: () => import('@/views/map'),
15
- component: () => import('@/views/vectorMap'),
14
+ component: () => import('@/views/map'),
15
+ // component: () => import('@/views/vectorMap'),
16
16
  meta: { title: '地图' }
17
17
  },
18
18
  {