1. Home
  2. Docs
  3. ZL WebGL Player
  4. UI Configuration Settings
  5. autoChangeControl

autoChangeControl

When users zoom all the way in, ZOOMLOOK automatically changes its State from move, to pan.  This is usually desirable since at the fully zoomed in state, users are moving the asset to explore various regions.  If moving through the timeline or spinning an object is being done at 100% zoomed in, the general reference is often lost.


* autoChangeControl: Whether to automatically change the control type when zoom level at 200. Default: true.

Example on page: autoChangeControl: false,

Embed Code

				
						<div class="ZLContainer500">
		<div id="zoom2" style="width:100%; height:500px;"></div>
	</div>
	

		<script src="/zoomlook/assets/ZLWebGL.js"></script>
	<script src="/zoomlook/assets/ZLPlayer.min.js"></script>
	<script>
		window.onload = () => {
	
	
			const ZL2 = new ZLPlayer({
				basePath: "https://us.zoomlook.cloud/zoomlookbook/zoomlook/pix/ZLGLAnimation/",
				clickLoad: false,
				type: "animation",
				fullscreenMode: 'page',
				autoplay: true,
				spinReverse: true,
				fps: 8,
				autoChangeControl: false,
				crossCursor: true,
			});
			ZL2.loadZLView("ITAXfv-746089", "zoom2");
	
	
		};
	</script>
				
			

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *