You are using a browser that is no longer supported. Please use the latest version of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. For more information please see the System Requirements.

Unsupported browser

You are using a browser that is not supported. JavaScript API works on the latest versions of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. Use one of these browsers and provide your feedback through GeoNet, the Esri Community.

  • {i18n.unsupportedBrowser.chrome}
  • Firefox
  • Safari
  • undefined
Loading...

Note: Support for 3D on mobile devices may vary, view the system requirements for more information.

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 where the tracked device is heading towards. A third party library is referenced for the geolocation API reference.

There are security considerations to be taken into account when working with geolocation. The Track widget is not supported on insecure origins. To use it, switch your application to a secure origin, such as HTTPS. Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that supports Window.isSecureContext (currently Chrome and Firefox).

Sample search results

TitleSample
Loading...