修改代码

This commit is contained in:
ival 2019-07-17 12:17:41 +08:00
parent 38d5cc1b2e
commit f2651e5844

View File

@ -51,7 +51,7 @@ class Painter {
// 创建视图
Object.values(mapDevice).forEach(device => {
device && this.add(device);
this.add(device);
});
}
@ -60,7 +60,6 @@ class Painter {
* @param {*} device
*/
add(device) {
// console.log(device, device._type, 111);
const type = device._type;
const instance = shapefactory(type, device, this.$jmap);
if (instance) {