|
@@ -43,7 +43,6 @@ export default {
|
|
|
scene: null,
|
|
|
view: null,
|
|
|
floorList: {},
|
|
|
- fmapID:'1000423_120',
|
|
|
urlMsg: {}
|
|
|
};
|
|
|
},
|
|
@@ -61,15 +60,16 @@ export default {
|
|
|
document.getElementById(`canvas`).focus();
|
|
|
this.clearGraphy();
|
|
|
this.scene = new EditScence();
|
|
|
+ console.log(this.urlMsg.fmapID,)
|
|
|
fengmap = new SFengParser(
|
|
|
"fengMap",
|
|
|
- this.mapServerURL + "/" + this.fmapID,
|
|
|
+ this.mapServerURL + "/" + this.urlMsg.fmapID,
|
|
|
this.key,
|
|
|
this.appName,
|
|
|
null
|
|
|
);
|
|
|
const floorid = "f1";
|
|
|
- fengmap.loadMap(this.fmapID, resp => {
|
|
|
+ fengmap.loadMap(this.urlMsg.fmapID, resp => {
|
|
|
this.floorList = resp;
|
|
|
this.parserData(floorid);
|
|
|
this.view.fitSceneToView();
|