ry-vue-map 0.5.2 → 0.5.3

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.5.2",
3
+ "version": "0.5.3",
4
4
  "private": false,
5
5
  "main": "lib/ryui.umd.min.js",
6
6
  "description": "ry公共组件库",
@@ -269,13 +269,13 @@
269
269
  this.lMap.onCancel();
270
270
  },
271
271
  onCreateLine(){
272
- let draw = this.lMap.onCreateLine((id,type) => {
272
+ let draw = this.lMap.onCreateLine(({id,type}) => {
273
273
  this.$emit('drawLineEvent',{draw,id,type});
274
274
  });
275
275
  draw.Id=generateGuid();
276
276
  },
277
277
  onCreateArea(){
278
- let draw = this.lMap.onCreateArea((id,type) => {
278
+ let draw = this.lMap.onCreateArea(({id,type}) => {
279
279
  this.$emit('drawPolygonEvent',{draw,id,type});
280
280
  });
281
281
  draw.Id=generateGuid();
@@ -403,7 +403,6 @@ export default class LMapServices {
403
403
  }
404
404
 
405
405
  onCreateArea(callback) {
406
- console.log(callback);
407
406
  if (this.map) {
408
407
  let draw = new LDraw('Polygon', callback, this.map);
409
408
  this.drawPolygonArr.add(draw);
@@ -1002,4 +1001,4 @@ export default class LMapServices {
1002
1001
 
1003
1002
  }
1004
1003
 
1005
- }
1004
+ }
@@ -1016,10 +1016,10 @@
1016
1016
  draw,
1017
1017
  id,
1018
1018
  type
1019
- }) {
1020
- // console.log('drawPolygonEvent');
1021
- // console.log(draw);
1022
- // console.log(id,type);
1019
+ }) {
1020
+ console.log('drawLineEvent');
1021
+ console.log(draw);
1022
+ console.log(id, type);
1023
1023
  if (!this.darws.has(id) && !type) {
1024
1024
  this.darws.set(id, draw);
1025
1025
  }