|
|
@ -159,7 +159,7 @@ var QMUtil = function () { |
|
|
bSpace: 5000, |
|
|
bSpace: 5000, |
|
|
fSpace: 500, //双叠层状态下楼层的间距
|
|
|
fSpace: 500, //双叠层状态下楼层的间距
|
|
|
maxDis: 700, |
|
|
maxDis: 700, |
|
|
minDis: 100, |
|
|
|
|
|
|
|
|
minDis: 40, |
|
|
shadow: true, //是否显示阴影
|
|
|
shadow: true, //是否显示阴影
|
|
|
navColor: 0xee6a50, //途径店铺颜色
|
|
|
navColor: 0xee6a50, //途径店铺颜色
|
|
|
aRadius: 2, //圆角半径 大于2 则店铺box显示圆角
|
|
|
aRadius: 2, //圆角半径 大于2 则店铺box显示圆角
|
|
|
@ -5542,14 +5542,13 @@ MainMap_QM.prototype = { |
|
|
let vh = bottomY-topY; |
|
|
let vh = bottomY-topY; |
|
|
let disc = Map_QM.controls.getDistance(); |
|
|
let disc = Map_QM.controls.getDistance(); |
|
|
if(vh==0 || vw/vh < Map_QM.w/Map_QM.h){ //按高度计算
|
|
|
if(vh==0 || vw/vh < Map_QM.w/Map_QM.h){ //按高度计算
|
|
|
Map_QM.setCameraDist((disc*vh/Map_QM.h)+30, Map_QM.moveMapPosition, Map_QM.drawPathStart); |
|
|
|
|
|
|
|
|
Map_QM.setCameraDist((disc*vh/Map_QM.h)+20, Map_QM.moveMapPosition, Map_QM.drawPathStart); |
|
|
}else{ //按宽度计算
|
|
|
}else{ //按宽度计算
|
|
|
Map_QM.setCameraDist((disc*vw/Map_QM.w)+30, Map_QM.moveMapPosition, Map_QM.drawPathStart); |
|
|
|
|
|
|
|
|
Map_QM.setCameraDist((disc*vw/Map_QM.w)+20, Map_QM.moveMapPosition, Map_QM.drawPathStart); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
drawPathStart:function(){ |
|
|
drawPathStart:function(){ |
|
|
console.log("**********"); |
|
|
|
|
|
document.addEventListener("pathOver", Map_QM.onFindPathFloor, true); |
|
|
document.addEventListener("pathOver", Map_QM.onFindPathFloor, true); |
|
|
if (Map_QM.util.isMorePath) { |
|
|
if (Map_QM.util.isMorePath) { |
|
|
Map_QM.mapArr[Map_QM.forShopArr[Map_QM.util._indexPathFloor].build][Map_QM.forShopArr[Map_QM.util._indexPathFloor].floor].findPath.onFindPathAnimation(pathNodes[Map_QM.util._indexPathFloor].pathNode, Map_QM.util.isMorePath,pathNodes[Map_QM.util._indexPathFloor].floor); //传入数组
|
|
|
Map_QM.mapArr[Map_QM.forShopArr[Map_QM.util._indexPathFloor].build][Map_QM.forShopArr[Map_QM.util._indexPathFloor].floor].findPath.onFindPathAnimation(pathNodes[Map_QM.util._indexPathFloor].pathNode, Map_QM.util.isMorePath,pathNodes[Map_QM.util._indexPathFloor].floor); //传入数组
|
|
|
|