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.
- package/README.MD +1 -1
- package/lib/ryui.common.js +51 -47
- 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 +51 -47
- 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/ryMapTool/src/index.vue +2 -2
- package/src/utils/lMapServices.js +1 -2
- package/src/views/map/index.vue +4 -4
package/lib/ryui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|
package/src/views/map/index.vue
CHANGED
|
@@ -1016,10 +1016,10 @@
|
|
|
1016
1016
|
draw,
|
|
1017
1017
|
id,
|
|
1018
1018
|
type
|
|
1019
|
-
}) {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
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
|
}
|