Widgets

Prompts for creating dashboard widgets

1. Summary Statistics Widget

Display key metrics at a glance.

Create a summary widget showing the [count/sum/average] of [field_name] from [layer_name]. Display as a large number with a label.

2. Chart Widget

Add a chart visualization.

Create a [bar/pie/line] chart widget showing [field_name] values from [layer_name]. Group by [category_field] and use appropriate colors.

3. Filter Widget

Add interactive filter controls.

Create a filter widget for [layer_name] that lets users filter by [field_name]. Use a [dropdown/slider/checkbox] control style.

4. Legend Widget

Display map legend.

Add a legend widget showing the symbology for [layer_name]. Include color swatches, labels, and value ranges where applicable.

5. Layer Toggle Widget

Control layer visibility.

Create a layer toggle widget that lets users turn [layer_name] on and off. Group related layers together with a header.

6. Search Widget

Add location or feature search.

Add a search widget that searches [layer_name] by [field_name]. Show matching results in a dropdown and zoom to selected feature.

7. Time Slider Widget

Control temporal data display.

Add a time slider widget for [layer_name] using [date_field]. Let users filter features by dragging the slider across the date range.

8. Table Widget

Show tabular data.

Add a table widget displaying [field_1], [field_2], [field_3] from [layer_name]. Enable sorting and link rows to map features.