|
@@ -1,7 +1,7 @@
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<head>
|
|
|
- <title>3D全景之</title>
|
|
|
+ <title>恒硕科技产业园</title>
|
|
|
<meta charset="utf-8" />
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
|
<meta id="jdouview" name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
|
|
@@ -144,7 +144,7 @@
|
|
|
var geometry, material, mesh;
|
|
|
var target = new THREE.Vector3();
|
|
|
|
|
|
- var lon = 90, lat = 0;
|
|
|
+ var lon = 258.798, lat = -19.79;
|
|
|
var phi = 0, theta = 0;
|
|
|
|
|
|
var touchX, touchY;
|
|
@@ -306,8 +306,11 @@
|
|
|
function onDocumentTouchMove(event) {
|
|
|
event.preventDefault();
|
|
|
var touch = event.touches[0];
|
|
|
- lon -= (touch.screenX - touchX) * 0.1;
|
|
|
- lat += (touch.screenY - touchY) * 0.1;
|
|
|
+ lon -= (touch.screenX - touchX) * 0.2;
|
|
|
+
|
|
|
+ lat += (touch.screenY - touchY) * 0.2;
|
|
|
+ console.log("#debug#🚀 ~ file: index.html:310 ~ onDocumentTouchMove ~ lon:", lon)
|
|
|
+ console.log("#debug#🚀 ~ file: index.html:312 ~ onDocumentTouchMove ~ lat:", lat)
|
|
|
touchX = touch.screenX;
|
|
|
touchY = touch.screenY;
|
|
|
}
|