Skip to main content

Details

Shows the popup of a single feature from a sibling Map widget's layer, using that layer's popupTemplate (title, contents, media, and attachments). Features come from a clicked feature or from those in the map's current extent, and you can page through the loaded features.

At a glance

Type keydetails
Default size4 × 10 (min 3 × 5)
Data sourceA sibling Map widget + one of its feature layers
Emits
Receivesshow-feature (from map:layer-click), filter (from map:extent-change)
Sourcesrc/widgets/widgets/details/

Configuration

FieldTypeDefaultPurpose
sourceWidgetIdstring""Instance id of the source Map. Empty shows the placeholder.
sourceWidgetTitlestring""Display title of the source Map.
layerIdstring""Id of the feature layer whose popup is shown.
layerTitlestring""Display title of the selected layer.
showTitlebooleantrueShow the popup title.
showContentsbooleantrueShow text/fields content elements.
showMediabooleantrueShow media content elements.
showAttachmentsbooleantrueShow attachment content elements.
maxFeaturesnumber (1–100)10Max features to load from the extent (paged through).
sortFieldsSortField[][]Ordering clauses (field + asc/desc), applied in order.
filterClausesclause[][]Attribute filter applied when loading features from the map extent. Clauses (field operator operand) join left-to-right with AND/OR into a SQL where. Does not affect clicked features.

Config panel

  • Data — pick the source Map and one of its feature layers, edit the sort-field clauses, and build an optional Filter (a SQL expression of field/operator/value clauses joined with AND/OR) that limits the features loaded from the map extent.
  • Appearance — toggle which popup elements appear (title, contents, media, attachments) and set the max feature count.

Cross-widget actions

The Details widget is a pure consumer (it's flagged hideActions, so it has no Actions section):

  • show-feature — when a Map emits map:layer-click, wire it here to show the clicked feature.
  • filter — when a Map emits map:extent-change, wire it here to load the features in the current extent.

It also reads the source Map's live MapView and feature layer through the MapViewRegistry.

Notable behavior

  • Unconfigured until both a source Map and a layer are selected.
  • A clicked feature takes priority over extent-loaded features.
  • The extent filter loads up to maxFeatures features; you page through them.
  • The optional attribute Filter narrows the extent-loaded features only; features the user clicks on the map are always shown.
  • Sort fields are applied when querying the extent.
  • Content visibility filters the popupTemplate content by element type.
  • Lazy-loads the ArcGIS feature CSS on first render.