ry-vue-map 0.4.0 → 0.4.2

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,78 +1,78 @@
1
- {
2
- "name": "ry-vue-map",
3
- "version": "0.4.0",
4
- "private": false,
5
- "main": "lib/ryui.umd.min.js",
6
- "description": "ry公共组件库",
7
- "license": "MIT",
8
- "author": "lzh",
9
- "keywords": [
10
- "ry",
11
- "vue",
12
- "element-ui"
13
- ],
14
- "files": [
15
- "lib/*",
16
- "src/*",
17
- "*.json",
18
- "*.js",
19
- "*.md"
20
- ],
21
- "scripts": {
22
- "serve": "vue-cli-service serve",
23
- "build": "vue-cli-service build",
24
- "build:report": "vue-cli-service build --report",
25
- "lint": "vue-cli-service lint",
26
- "lib": "vue-cli-service build --target lib --name ryui --dest lib src/components/index.js",
27
- "docs:dev": "vuepress dev docs --temp .temp",
28
- "docs:build": "vuepress build docs"
29
- },
30
- "dependencies": {
31
- "@amap/amap-jsapi-loader": "~1.0.1",
32
- "@form-create/element-ui": "^2.5.20",
33
- "@turf/helpers": "^6.5.0",
34
- "@turf/line-intersect": "^6.5.0",
35
- "@vue-office/docx": "^0.2.4",
36
- "@vue-office/excel": "^0.2.4",
37
- "@vue-office/pdf": "^0.2.4",
38
- "@vue/composition-api": "^1.7.1",
39
- "axios": "~0.21.1",
40
- "core-js": "~3.15.2",
41
- "countup.js": "~2.0.7",
42
- "dayjs": "^1.11.7",
43
- "element-ui": "~2.15.6",
44
- "kml-geojson": "^1.2.2",
45
- "kml-to-geojson": "^1.0.13",
46
- "nprogress": "~0.2.0",
47
- "ol": "^6.14.1",
48
- "ry-map": "^0.4.6",
49
- "vue": "~2.6.14",
50
- "vue-demi": "^0.13.11",
51
- "vue-router": "~3.5.2",
52
- "vue-server-renderer": "^2.6.14",
53
- "vuedraggable": "~2.24.3",
54
- "vuex": "~3.6.2",
55
- "xgplayer-vue": "~1.1.5"
56
- },
57
- "devDependencies": {
58
- "@vue/cli-plugin-babel": "~4.4.6",
59
- "@vue/cli-plugin-eslint": "~4.4.6",
60
- "@vue/cli-plugin-router": "~4.4.6",
61
- "@vue/cli-plugin-vuex": "~4.4.6",
62
- "@vue/cli-service": "~4.4.6",
63
- "babel-eslint": "~10.1.0",
64
- "compression-webpack-plugin": "~6.1.1",
65
- "eslint": "~6.8.0",
66
- "eslint-plugin-vue": "~7.13.0",
67
- "sass": "~1.32.13",
68
- "sass-loader": "~10.2.0",
69
- "vue-template-compiler": "~2.6.14",
70
- "vuepress": "^1.9.7",
71
- "vuepress-plugin-demo-container": "^0.2.0"
72
- },
73
- "browserslist": [
74
- "> 1%",
75
- "last 2 versions",
76
- "not dead"
77
- ]
78
- }
1
+ {
2
+ "name": "ry-vue-map",
3
+ "version": "0.4.2",
4
+ "private": false,
5
+ "main": "lib/ryui.umd.min.js",
6
+ "description": "ry公共组件库",
7
+ "license": "MIT",
8
+ "author": "lzh",
9
+ "keywords": [
10
+ "ry",
11
+ "vue",
12
+ "element-ui"
13
+ ],
14
+ "files": [
15
+ "lib/*",
16
+ "src/*",
17
+ "*.json",
18
+ "*.js",
19
+ "*.md"
20
+ ],
21
+ "scripts": {
22
+ "serve": "vue-cli-service serve",
23
+ "build": "vue-cli-service build",
24
+ "build:report": "vue-cli-service build --report",
25
+ "lint": "vue-cli-service lint",
26
+ "lib": "vue-cli-service build --target lib --name ryui --dest lib src/components/index.js",
27
+ "docs:dev": "vuepress dev docs --temp .temp",
28
+ "docs:build": "vuepress build docs"
29
+ },
30
+ "dependencies": {
31
+ "@amap/amap-jsapi-loader": "~1.0.1",
32
+ "@form-create/element-ui": "^2.5.20",
33
+ "@turf/helpers": "^6.5.0",
34
+ "@turf/line-intersect": "^6.5.0",
35
+ "@vue-office/docx": "^0.2.4",
36
+ "@vue-office/excel": "^0.2.4",
37
+ "@vue-office/pdf": "^0.2.4",
38
+ "@vue/composition-api": "^1.7.1",
39
+ "axios": "~0.21.1",
40
+ "core-js": "~3.15.2",
41
+ "countup.js": "~2.0.7",
42
+ "dayjs": "^1.11.7",
43
+ "element-ui": "~2.15.6",
44
+ "kml-geojson": "^1.2.2",
45
+ "kml-to-geojson": "^1.0.13",
46
+ "nprogress": "~0.2.0",
47
+ "ol": "^6.14.1",
48
+ "ry-map": "^0.4.8",
49
+ "vue": "~2.6.14",
50
+ "vue-demi": "^0.13.11",
51
+ "vue-router": "~3.5.2",
52
+ "vue-server-renderer": "^2.6.14",
53
+ "vuedraggable": "~2.24.3",
54
+ "vuex": "~3.6.2",
55
+ "xgplayer-vue": "~1.1.5"
56
+ },
57
+ "devDependencies": {
58
+ "@vue/cli-plugin-babel": "~4.4.6",
59
+ "@vue/cli-plugin-eslint": "~4.4.6",
60
+ "@vue/cli-plugin-router": "~4.4.6",
61
+ "@vue/cli-plugin-vuex": "~4.4.6",
62
+ "@vue/cli-service": "~4.4.6",
63
+ "babel-eslint": "~10.1.0",
64
+ "compression-webpack-plugin": "~6.1.1",
65
+ "eslint": "~6.8.0",
66
+ "eslint-plugin-vue": "~7.13.0",
67
+ "sass": "~1.32.13",
68
+ "sass-loader": "~10.2.0",
69
+ "vue-template-compiler": "~2.6.14",
70
+ "vuepress": "^1.9.7",
71
+ "vuepress-plugin-demo-container": "^0.2.0"
72
+ },
73
+ "browserslist": [
74
+ "> 1%",
75
+ "last 2 versions",
76
+ "not dead"
77
+ ]
78
+ }
@@ -137,4 +137,9 @@ export default class MapDto {
137
137
  default: ()=> null,
138
138
  }
139
139
 
140
+ slicingZoom={
141
+ type: Number,
142
+ default: 13,
143
+ }
144
+
140
145
  }
@@ -6,7 +6,7 @@
6
6
  <button class="button-paly" @click.stop="onPlayTrajectory()" v-if="!index || !isStop"></button>
7
7
  <button class="button-stop" @click.stop="onStopTrajectory()" v-else></button>
8
8
  </el-col>
9
- <el-col :xs="13" :sm="19" :md="19" :lg="19" :xl="23">
9
+ <el-col style="margin-left: 30px;" :xs="13" :sm="19" :md="19" :lg="19" :xl="23">
10
10
  <el-slider v-model="index" :marks="marks" show-tooltip :step="1" :min="0" :max="cacheArr.length"
11
11
  @change="sliderChange" :format-tooltip="formatTooltip"></el-slider>
12
12
  </el-col>
@@ -161,6 +161,7 @@
161
161
  playbackColor,
162
162
  pointArr
163
163
  } = model;
164
+ if(!pointArr) return;
164
165
  const len = pointArr.length;
165
166
  if (!pointArr.length) return;
166
167
  this.len += len;
@@ -397,7 +398,6 @@
397
398
  },
398
399
  trackPlayback() {
399
400
  if (!this.cacheLines.length) {
400
-
401
401
  this.createTrackLineAndMarker(this.cacheScales[0],0);
402
402
  }
403
403
  this.intervalId = setInterval(r => {
@@ -126,27 +126,27 @@
126
126
  ]);
127
127
  _view.setMaxZoom(this.minZoom);
128
128
  _view.setMaxZoom(this.maxZoom);
129
- this.map=map;
130
- // _view.seZoom(this.zoom);
129
+ this.map = map;
131
130
  const {
132
131
  geo,
133
132
  width,
134
133
  color,
135
134
  lineDash
136
135
  } = this.boundaryModel;
136
+ lMap.SlicingZoom=this.slicingZoom;
137
137
  lMap.initMapMaskEvent(map.getLayers(), geo, {
138
138
  width,
139
139
  color,
140
140
  lineDash
141
141
  });
142
-
143
-
142
+ this._bingMapEvent();
143
+
144
144
  this.$emit('load', {
145
145
  map,
146
- mapServices:this.lMap,
146
+ mapServices: this.lMap,
147
147
  ryMapTool: this.$refs.mapTool
148
148
  });
149
-
149
+
150
150
  }
151
151
  });
152
152
  },
@@ -5,7 +5,14 @@
5
5
  :isCrossHair="isRyMapTool" :isRight="true" :isRyMapTool="true" @drawSuccess="drawSuccess"
6
6
  @drawError="drawError" :isShowRangingTool="true" :isShowDrawTool="isRyMapTool" :bindMapClick="true"
7
7
  @mapClick="mapClick($event)" @crossHairClick="crossHairClick($event)" :bindMapMoveend="true"
8
- @mapMoveend="mapMoveend($event)" v-if="dto" :boundaryModel="dto" :urls="urls" :bbox="bbox">
8
+ @mapMoveend="mapMoveend($event)" v-if="dto" :boundaryModel="dto" :urls="urls" :bbox="bbox"
9
+ :slicingZoom="13">
10
+ <template #marker="{mapDto}">
11
+ <ry-lines :map="mapDto.map" :startMarkerDto="startMarkerDto" :endMarkerDto="endMarkerDto"
12
+ :moveMarkerDto="endMarkerDto" :isShowPlayback="isShowPaly" :linenIsert="lineData"
13
+ @trackPlayEvent="trackPlayEvent($event)">
14
+ </ry-lines>
15
+ </template>
9
16
  </RyOfflineMap>
10
17
 
11
18
  <button @click="onClick()">测试</button>
@@ -33,8 +40,8 @@
33
40
  import RyClustersMarker from '@/components/maps/ryClustersMarker/src/index.vue';
34
41
  import RyPolygonGeo from '@/components/maps/ryPolygonGeo/src/index.vue';
35
42
  import geoJson from "./330112";
36
-
37
-
43
+ import LineObj from './obj'
44
+ import RyLines from '@/components/maps/ryLines/src/index.vue';
38
45
 
39
46
  export default {
40
47
  components: {
@@ -44,12 +51,15 @@
44
51
  RyPolygons,
45
52
  RyClustersMarker,
46
53
  RyPolygonGeo,
54
+ RyLines
47
55
  },
48
56
  data() {
49
57
  return {
50
58
  map: null,
51
59
  lMap: null,
52
60
  polygonColorObj: null,
61
+ lineData: null,
62
+ isShowPaly: false,
53
63
  // const bbox = [ 118.84072600000002, 29.937127000000032, 119.86315600000012, 30.445895000000064 ];
54
64
  // const center = [119.34667114000006, 30.198078622500038];
55
65
 
@@ -139,10 +149,17 @@
139
149
  onShowPaly(b) {
140
150
  this.isShowPaly = b;
141
151
  },
152
+ trackPlayEvent(e) {
153
+ console.log(e);
154
+ },
142
155
  load(obj) {
143
156
  console.log(obj);
144
157
  this.lMap = obj.mapServices;
145
158
  this.map = obj.map;
159
+ setTimeout(r => {
160
+ this.lineData = LineObj;
161
+ }, 3000);
162
+ this.lineData = LineObj;
146
163
  },
147
164
  drawSuccess(obj) {
148
165
  this.polygonModel = {
@@ -156,6 +173,7 @@
156
173
  },
157
174
  drawError(obj) {},
158
175
  mapClick(e) {
176
+ console.log('ee========',e);
159
177
  // alert(e);
160
178
  },
161
179
  onLoad(e) {},