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.
- package/README.MD +1 -1
- package/lib/ryui.common.js +70 -75
- 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 +70 -75
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +3 -3
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/components/maps/ryLines/src/index.vue +5 -5
- package/src/components/maps/ryMap/src/index.vue +2 -2
- package/src/components/maps/ryVectorMap/src/index.vue +1 -1
- package/src/router/index.js +2 -2
- package/src/views/map/index.vue +488 -280
- package/src/views/vectorMap/index.vue +1 -1
package/lib/ryui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -401,11 +401,12 @@
|
|
|
401
401
|
this.createTrackLineAndMarker(this.cacheScales[0],0);
|
|
402
402
|
}
|
|
403
403
|
this.intervalId = setInterval(r => {
|
|
404
|
-
|
|
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
|
}
|
package/src/router/index.js
CHANGED
|
@@ -11,8 +11,8 @@ Vue.use(VueRouter);
|
|
|
11
11
|
const routes = [
|
|
12
12
|
{
|
|
13
13
|
path: '/',
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
component: () => import('@/views/map'),
|
|
15
|
+
// component: () => import('@/views/vectorMap'),
|
|
16
16
|
meta: { title: '地图' }
|
|
17
17
|
},
|
|
18
18
|
{
|