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 key | details |
| Default size | 4 × 10 (min 3 × 5) |
| Data source | A sibling Map widget + one of its feature layers |
| Emits | — |
| Receives | show-feature (from map:layer-click), filter (from map:extent-change) |
| Source | src/widgets/widgets/details/ |
Configuration
| Field | Type | Default | Purpose |
|---|---|---|---|
sourceWidgetId | string | "" | Instance id of the source Map. Empty shows the placeholder. |
sourceWidgetTitle | string | "" | Display title of the source Map. |
layerId | string | "" | Id of the feature layer whose popup is shown. |
layerTitle | string | "" | Display title of the selected layer. |
showTitle | boolean | true | Show the popup title. |
showContents | boolean | true | Show text/fields content elements. |
showMedia | boolean | true | Show media content elements. |
showAttachments | boolean | true | Show attachment content elements. |
maxFeatures | number (1–100) | 10 | Max features to load from the extent (paged through). |
sortFields | SortField[] | [] | Ordering clauses (field + asc/desc), applied in order. |
filterClauses | clause[] | [] | 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 emitsmap:layer-click, wire it here to show the clicked feature.filter— when a Map emitsmap: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
maxFeaturesfeatures; 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
popupTemplatecontent by element type. - Lazy-loads the ArcGIS feature CSS on first render.