This sample demonstrates tracking via the Track widget. It works using geolocation functionality which accesses the geographic location of the tracking device and displays it in the SceneView. Since this sample may be accessed on a desktop, it was written with hardcoded coordinate locations to simulate tracking. The view rotates according to the direction the tracked device is heading. A third party library is referenced for the geolocation API reference.
The Track widget is only supported on secure origins. To use it, confirm your application is using a secure origin, such as HTTPS, or localhost is considered "potentially secure" and can be used for easy testing in browsers that supports Window.isSecureContext.