|
|
|
@ -2357,11 +2357,11 @@ MainMap_QM.prototype = { |
|
|
|
} else { |
|
|
|
Map_QM.util.selectBuild = build |
|
|
|
Map_QM.util.selectFloor = fIndex |
|
|
|
if(!Map_QM.util.options.shadow){ |
|
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].allObj.position.y = 0; |
|
|
|
if (!Map_QM.util.options.shadow) { |
|
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].allObj.position.y = 0 |
|
|
|
Map_QM.timeOutInit() |
|
|
|
if (callBack) callBack() |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
TweenMax.fromTo( |
|
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].allObj.position, |
|
|
|
0.3, |
|
|
|
@ -2395,11 +2395,11 @@ MainMap_QM.prototype = { |
|
|
|
Map_QM.util.selectBuild = build |
|
|
|
Map_QM.util.selectFloor = fIndex |
|
|
|
|
|
|
|
if(!Map_QM.util.options.shadow){ |
|
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].allObj.position.y = 0; |
|
|
|
if (!Map_QM.util.options.shadow) { |
|
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].allObj.position.y = 0 |
|
|
|
Map_QM.timeOutInit() |
|
|
|
if (callBack) callBack() |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
TweenMax.fromTo( |
|
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].allObj.position, |
|
|
|
0.3, |
|
|
|
@ -3386,9 +3386,9 @@ MainMap_QM.prototype = { |
|
|
|
* 初始化后调用 |
|
|
|
*/ |
|
|
|
timeOutInit: function () { |
|
|
|
Map_QM.controls.update(); |
|
|
|
Map_QM.renderer.render(Map_QM.scene, Map_QM.camera); |
|
|
|
Map_QM.labelRenderer.render(Map_QM.scene, Map_QM.camera); |
|
|
|
Map_QM.controls.update() |
|
|
|
Map_QM.renderer.render(Map_QM.scene, Map_QM.camera) |
|
|
|
Map_QM.labelRenderer.render(Map_QM.scene, Map_QM.camera) |
|
|
|
if (Map_QM.callBackLoadOver) { |
|
|
|
let floorData = [] |
|
|
|
for (let i = 0; i < Map_QM.util.allMap.length; i++) { |
|
|
|
@ -5884,16 +5884,16 @@ FloorMap_QM.prototype = { |
|
|
|
} |
|
|
|
} |
|
|
|
//显示车位编号
|
|
|
|
if (mapData.parkArea[i].parkNum != 'NaN' && i % 10 == 0) { |
|
|
|
let shopDiv = document.createElement('div') |
|
|
|
shopDiv.style.cssText = css_LR |
|
|
|
shopDiv.style.visibility = 'hidden' |
|
|
|
shopDiv.textContent = mapData.parkArea[i].parkNum |
|
|
|
let shopLabel = new THREE.CSS2DObject(shopDiv) |
|
|
|
shopLabel.name = mapData.parkArea[i].name |
|
|
|
shopLabel.position.set(mapData.parkArea[i].xaxis >> 0, (-1 * mapData.parkArea[i].yaxis) >> 0, parseInt(mapData.parkArea[i].toHeight) + 1) |
|
|
|
this.labelObj.add(shopLabel) |
|
|
|
} |
|
|
|
// if (mapData.parkArea[i].parkNum != 'NaN' && i % 10 == 0) {
|
|
|
|
// let shopDiv = document.createElement('div')
|
|
|
|
// shopDiv.style.cssText = css_LR
|
|
|
|
// shopDiv.style.visibility = 'hidden'
|
|
|
|
// shopDiv.textContent = mapData.parkArea[i].parkNum
|
|
|
|
// let shopLabel = new THREE.CSS2DObject(shopDiv)
|
|
|
|
// shopLabel.name = mapData.parkArea[i].name
|
|
|
|
// shopLabel.position.set(mapData.parkArea[i].xaxis >> 0, (-1 * mapData.parkArea[i].yaxis) >> 0, parseInt(mapData.parkArea[i].toHeight) + 1)
|
|
|
|
// this.labelObj.add(shopLabel)
|
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
let mahc = this.Model_QM.MyParkShape(shapeArr, materials, parkHeight, borderColor) |
|
|
|
|