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.

In this sample you can interactively explore when various view events are fired. In the second part of the right panel you can see how the properties change when you click or navigate in the view.

Carefully watch the following video to see which events are fired after a double-click: event-explorer

This is how you can listen to events on a SceneView or MapView:

// Example: Listen to the click event on the view
view.on("click", function(event) {
  console.log("click event: ", event);
});

Watch properties on SceneView or MapView to listen to value changes:

// Exmaple: Watch to the scale property
view.watch("scale", function(newValue) {
  console.log("scale property changed: ", newValue);
});

Sample search results

TitleSample
Loading...