# Dataset Viewer

The dataset viewer provides a comprehensive interface for viewing and managing spatial datasets.

## Overview

The dataset viewer (`dataset.php`) displays datasets with multiple tabs for different views and operations.

## Features

### Data Tab

- Dataset metadata and information
- Feature listing with pagination
- Property filtering
- Export options
- Table view of features

### Map Tab

- Interactive map display
- Layer styling and configuration
- Popup configuration
- Legend management
- Basemap selection

### Analysis Tab

- Quick analysis tools
- Statistics display
- Chart generation
- Summary information

## Layer Controls

### Visibility

- Toggle layer visibility on/off
- Control layer opacity
- Layer ordering (z-index)

### Styling

- Point styling (color, size, symbol)
- Line styling (color, width, style)
- Polygon styling (fill, stroke, opacity)
- Graduated colors based on attributes
- Categorical colors

### Filters

- Property-based filtering
- Spatial filtering (bounding box)
- Save and load filter configurations
- Multiple filter conditions

### Popups

- Configure popup content
- Select properties to display
- Custom HTML formatting
- Link to detail pages

## Legend Management

- Automatic legend generation
- Custom legend configuration
- Graduated color legends
- Categorical legends
- Legend export

## Export Options

- GeoJSON export
- Shapefile export
- CSV export
- KML export
- Filtered export

## Related Documentation

- [Map Viewer](map-viewer.md)
- [Analysis Panel](analysis-panel.md)
- [Dataset Tools](dataset-tools.md)

