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.
Skip To ContentArcGIS for DevelopersSign In Dashboard

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.

  • {}
  • Firefox
  • Safari
  • undefined

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

This sample is similar to the Feature widget sample with the exception that this sample demonstrates docking the widget into a side panel. This is useful in circumstances where you may not necessarily want or need the associated feature's information to display directly within the map. It displays information based on the PopupTemplate using the Feature widget. The content of the PopupTemplate is saved within the referenced layer and makes use of custom text elements with chart media.

// Provide graphic and DOM container to a new instance of a Feature widget
const feature = new Feature({
  graphic: graphic,
  spatialReference: view.spatialReference

// Listen for the pointer-move event on the View
view.on("pointer-move", function(event) {
  // Perform a hitTest on the View
  view.hitTest(event).then(function(hitTestResult) {
    const result = hitTestResult.results[0];
    highlight && highlight.remove();
    // Update the graphic of the Feature widget
    // on pointer-move with the result
    if (result) {
      feature.graphic = result.graphic;
      highlight = layerView.highlight(result.graphic);
    } else {
      feature.graphic = graphic;

Sample search results