
The model surface is covered by satellite and aerial images and contains several zoom levels. Google bought it in 2004 as many other tech gadgets.

Originally named as Earth Viewer it was developed by the company Keyhole, Inc.

three dimensional digital model of the Earth. Today we’re going to show you a few options of exploiting Locus cooperation with Google Earth.

Being it various map programs, sport trackers, add-ons from our own dev team or from our users. Map can cooperate with many applications. const camRadiusTilStart = 60 // Camera radius (i.e zoom) at which the tilt effect beginsĬonst camRadiusTiltEnd = 10 // Camera radius at which the tolt reaches its maximumĬonst cameraBetaStart = camera.beta // Controls the tilt effect when camera is zoomed outĬonst cameraBetaEnd = camera.beta * 2.2 // Controls the tilt effect when camera is zoomed in It modifies the camera’s beta property based on its radius (i.e the current zoom level). Hi a solution that uses the onBeforeRenderObservable to run an update loop. These are just a couple of things that come to mind so hopefully, this gives you a starting place. If you want to that behavior to be with left-click instead, you could just change your attachControl call to something like // First param doesn't matter, second is for noPreventDefault, third is for using ctrl for panning, and the fourth is to change your panning button to left clickĬamera.attachControl(canvas, true, false, 0) įor adding a limit, you may need to either use a custom solution that checks for the target’s position before moving or possibly add an observer/callback to one of the camera’s observables like onViewMatrixChangedObservable to zero out the inertialPanningX and/or inertialPanningY values if the target gets to a specific boundary (these inertial panning values are used to smoothly move the camera with inertia if input is received zero-ing them is effectively the same as cancelling any remaining movement). By default, panning is handled with a Right-click drag. You can also use your upper and lower beta limits to prevent the camera from moving to an undesired angle.įor panning, the ArcRotateCamera does have built-in panning and I believe also has a flag for map panning, which should eliminate any vertical movement. You could even use a Scalar.Lerp to a smoother transition. The tilting as you zoom in could be as simple as modifying your camera’s beta with respect to your camera’s radius. Since you’re using an ArcRotateCamera, it shouldn’t be too difficult to accomplish what you’re trying to do.
