zjs_project пре 1 година
родитељ
комит
f9cda1597e

+ 2 - 0
src/components/krpanoVideo/index.vue

@@ -241,6 +241,8 @@
 					image_hotspot.ath = position.ath;
 					image_hotspot.atv = position.atv;
 				}
+				this.panoramicKrpano.set('view.hlookat', position.ath);
+				this.panoramicKrpano.set('view.vlookat', position.atv);
 				console.warn("***setPosition***",position);
 			},
 			//设置全景图图片地址

+ 2 - 2
src/components/krpanoVideo/panoramic_no_drag.xml

@@ -66,9 +66,9 @@
 			onclick="togglepause();" enabled="false"
 			ondown.addevent="set(cursor,grabbing);" onup.addevent="set(cursor,grab);" >
 		</hotspot>
-		<hotspot name="image_hotspot" ath="50.082" atv="14" rotate="-45.0" zorder="1"
+		<!-- <hotspot name="image_hotspot" ath="50.082" atv="14" rotate="-45.0" zorder="1"
 			distorted="true" scale="0.5" alpha="0.5"
-			url="https://dm.static.elab-plus.com/miniProgram/grass.jpg" keep="true"></hotspot>
+			url="https://dm.static.elab-plus.com/miniProgram/grass.jpg" keep="true"></hotspot> -->
 		<action name="mobilescale" autorun="preinit" devices="mobile">
 			mul(stagescale,0.5);
 		</action>