We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run this code. In 2D mode, zooming in doesn't trigger the console message, you have to move the camera after zooming to get it to happen.
var viewer = new Cesium.Viewer('cesiumContainer'); var scene = viewer.scene; var lastHeight; scene.preRender.addEventListener(function(){ var camera = scene.camera; var height = camera.positionCartographic.height; if(lastHeight !== height) { //Camera height has changed console.log('New height: ' + height); lastHeight = height; } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Run this code. In 2D mode, zooming in doesn't trigger the console message, you have to move the camera after zooming to get it to happen.
The text was updated successfully, but these errors were encountered: