1. Home
  2. Docs
  3. ZL WebGL Player
  4. ZOOMLOOK Actions
  5. getZoomLevel

getZoomLevel

Get zoom level. 
          Nuff said.

Embed Code

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

<script src="/zoomlook/assets/ZLWebGL.js"></script>
<script src="/zoomlook/assets/ZLPlayer.min.js"></script>
<script>
    const ZL = new ZLPlayer({
    			basePath: "https://us.zoomlook.cloud/zoomlookbook/zoomlook/pix/ZLGLAnimation/",
    			clickLoad: false,
    			autoplay: true,
    			fps: 5,
    			type: "animation",
    		});
    		ZL.loadZLView("tIKoXX-433591", "zoom");
    	
    		function getZoomLevel() {
    			const level = ZL.getZoomLevel();
    			const levelText = document.getElementById("level");
    			levelText.innerHTML = `Level: ${level}`
    		}
</script>


<button onclick="getZoomLevel()">
    getZoomLevel
</button>
<p id="level" style="padding: 10px;"></p>
				
			

How can we help?