修改代码
This commit is contained in:
parent
38d5cc1b2e
commit
f2651e5844
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user