|
@@ -92,10 +92,13 @@ export default {
|
|
|
// 屋顶
|
|
|
if (window.fengmapData.frImg) {
|
|
|
let imgItem = new SImageItem(null, `${this.mapServerURL}/webtheme/${this.fmapID}/${window.fengmapData.frImg}`)
|
|
|
- this.scene.addItem(imgItem)
|
|
|
imgItem.showType = SImageShowType.AutoFit;
|
|
|
+ imgItem.connect('imgLoadOver',this,()=> {
|
|
|
+ this.readGraph();
|
|
|
+ })
|
|
|
+ this.scene.addItem(imgItem)
|
|
|
this.view.scene = this.scene
|
|
|
- this.view.fitSceneToView()
|
|
|
+ // this.view.fitSceneToView()
|
|
|
}
|
|
|
} else {
|
|
|
if (window.fengmapData.gnameToGid[floor]) {
|
|
@@ -109,7 +112,7 @@ export default {
|
|
|
this.fParser.spaceList.forEach(t => {
|
|
|
this.scene.addItem(t)
|
|
|
t.nameSize = 12
|
|
|
- t.nameColor = '#646A73'
|
|
|
+ t.nameColor = '#2a2a2a';
|
|
|
if (t.data.Name && this.bunkObj[t.data.Name]) {
|
|
|
t.name = this.bunkObj[t.data.Name].brandname
|
|
|
} else {
|
|
@@ -123,12 +126,15 @@ export default {
|
|
|
this.fParser.columnList.forEach(t => this.scene.addItem(t))
|
|
|
this.fParser.casementList.forEach(t => this.scene.addItem(t))
|
|
|
this.view.scene = this.scene
|
|
|
- this.view.fitSceneToView()
|
|
|
+ // this.view.fitSceneToView()
|
|
|
+ this.readGraph()
|
|
|
})
|
|
|
} else {
|
|
|
console.log('楼层不正确')
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ readGraph(){
|
|
|
this.readGroup(this.floorid).then(data => {
|
|
|
this.loading = false
|
|
|
if (data.Result == 'failure') {
|