Skip to content

Commit 5a70634

Browse files
authored
Add some information to the user on how to use the identify tool (#909)
1 parent ec064da commit 5a70634

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/base/src/panelview/components/identify-panel/IdentifyPanel.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ export const IdentifyPanelComponent: React.FC<IIdentifyComponentProps> = ({
108108
: 'unset',
109109
}}
110110
>
111+
{!Object.keys(features ?? {}).length && (
112+
<div style={{ textAlign: 'center' }}>
113+
Please select a layer from the layer list, then "i" from the toolbar
114+
to start identifying features.
115+
</div>
116+
)}
111117
{features &&
112118
Object.values(features).map((feature, featureIndex) => (
113119
<div key={featureIndex} className="jgis-identify-grid-item">

0 commit comments

Comments
 (0)