|
@@ -238,6 +238,33 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
});
|
|
|
|
|
|
this.elDisplayModel = elDisplayModel
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ let mapStyleBtn = $("<input type='button' value='普通'></input>")
|
|
|
+ mapStyleBtn.css({
|
|
|
+ position : "absolute",
|
|
|
+ right : '50%',
|
|
|
+ bottom: '20px',
|
|
|
+ zIndex: "10000",
|
|
|
+ fontSize:'1em' ,color:"black",
|
|
|
+ width : '100px',
|
|
|
+ background:'rgba(255,255,255,0.8)',
|
|
|
+ })
|
|
|
+ this.domRoot.appendChild(mapStyleBtn[0]);
|
|
|
+ let map = viewer.mapViewer.mapLayer.maps.find(e=>e.name == 'map')
|
|
|
+ mapStyleBtn.on("click", (e) => {
|
|
|
+ map.switchStyle(map.style == 'satellite' ? 'standard' : 'satellite')
|
|
|
+ mapStyleBtn.val(map.style == 'satellite' ? '卫星' : '普通')
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1412,7 +1439,6 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
Images360.filters.not(this.currentPano),
|
|
|
Images360.filters.isEnabled(),
|
|
|
Images360.filters.inFloorDirection( this.position, direction, option1 ), //原先用inPanoDirection,但容易穿楼层,当mouse较低或较高
|
|
|
- Images360.filters.inPanoDirection( this.position, this.getDirection(), option1/* , true */), //垂直方向上再稍微限制一下, 要接近视线方向,避免点击前方时因无路而到下一楼。但不能太高,否则楼梯上稍微朝下点击都到不了上方。之所以使用视线方向是因为镜头方向比鼠标方向目的性更强。
|
|
|
(pano)=>{
|
|
|
/* let isNeighbour = this.isNeighbour(this.currentPano, pano, true, true); //不计算的
|
|
|
if(isNeighbour == void 0){
|
|
@@ -1441,6 +1467,11 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
}
|
|
|
} */
|
|
|
]
|
|
|
+
|
|
|
+ if(!byKey){
|
|
|
+ Images360.filters.inPanoDirection( this.position, this.getDirection(), option1/* , true */) //垂直方向上再稍微限制一下, 要接近视线方向,避免点击前方时因无路而到下一楼。但不能太高,否则楼梯上稍微朝下点击都到不了上方。之所以使用视线方向是因为镜头方向比鼠标方向目的性更强。
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
var list = [//决胜项目
|
|
|
(pano)=>{
|
|
@@ -1576,7 +1607,7 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
|
|
|
|
|
|
update(){
|
|
|
- if(this.tileDownloader.started){
|
|
|
+ //if(this.tileDownloader.started){
|
|
|
|
|
|
var vectorForwards = this.getTileDirection()
|
|
|
|
|
@@ -1584,7 +1615,7 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
|
|
|
this.updateTileDownloader(tileArr, vectorForwards);
|
|
|
this.updatePanoRenderer(vectorForwards)
|
|
|
- }
|
|
|
+ //}
|
|
|
|
|
|
this.updateZoomPano();
|
|
|
|
|
@@ -1993,7 +2024,7 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
tile.material.color = (new THREE.Color()).setHSL(colorHue, 0.6, 0.7)
|
|
|
|
|
|
|
|
|
- tile.scoreLabel = new TextSprite( {
|
|
|
+ /* tile.scoreLabel = new TextSprite( {
|
|
|
backgroundColor: { r: 0, g: 0, b: 0, a: 0 },
|
|
|
textColor: { r: 0, g: 0, b: 0, a: 1 },
|
|
|
borderRadius: 15,
|
|
@@ -2004,7 +2035,7 @@ export class Images360 extends THREE.EventDispatcher{
|
|
|
tile.scoreLabel.sprite.material.side = 2;
|
|
|
tile.scoreLabel.rotation.x = Math.PI
|
|
|
|
|
|
- tile.add(tile.scoreLabel)
|
|
|
+ tile.add(tile.scoreLabel) */
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2415,7 +2446,7 @@ Images360.prototype.getNeighbours = function(){ //逐渐自动获取neighbours
|
|
|
let changeTexCount = ()=>{
|
|
|
changeCount ++;
|
|
|
}
|
|
|
- let median = Potree.timeCollect.depthSampler.median
|
|
|
+ let median = Potree.timeCollect.depthSamChangeImg.median
|
|
|
|
|
|
|
|
|
let ifOverTime = ()=>{
|