home / skills / dkyazzentwatwa / chatgpt-skills / territory-mapper
This skill helps visualize sales territories on interactive maps with customizable boundaries, color coding, and data overlays for better planning.
npx playbooks add skill dkyazzentwatwa/chatgpt-skills --skill territory-mapperReview the files below or copy the command above to add this skill to your agents.
---
name: territory-mapper
description: Use when asked to visualize sales territories, coverage areas, service regions, or geographic boundaries on interactive maps.
---
# Territory Mapper
Visualize sales territories, coverage areas, and service regions on interactive maps with customizable boundaries and styling.
## Purpose
Territory visualization for:
- Sales territory assignment and planning
- Service area coverage mapping
- Market analysis and expansion
- Delivery zone visualization
- Regional performance tracking
## Features
- **Territory Polygons**: Draw custom boundaries
- **Color Coding**: Color by performance, team, status
- **Interactive Maps**: Zoom, pan, tooltips
- **Data Overlay**: Add markers, heatmaps, routes
- **Statistical Layers**: Population, demographics
- **Export**: HTML, PNG, GeoJSON
## Quick Start
```python
from territory_mapper import TerritoryMapper
# Create territory map
mapper = TerritoryMapper()
mapper.add_territory(
name='West Coast',
coordinates=[(37.7, -122.4), (34.0, -118.2), ...],
color='blue',
data={'sales': 1000000, 'rep': 'Alice'}
)
mapper.save_html('territories.html')
```
## CLI Usage
```bash
# Create map from GeoJSON
python territory_mapper.py --geojson territories.geojson --output map.html
# Color by column
python territory_mapper.py --geojson territories.geojson --color-by sales --output map.html
```
This skill visualizes sales territories, coverage areas, and service regions on interactive maps with customizable boundaries and styling. It creates polygon territories, overlays markers and heatmaps, and exports results as HTML, PNG, or GeoJSON for sharing and reporting.
You define territories by polygon coordinates or import GeoJSON, then attach metadata (sales, rep, status) and styling (color, opacity). The mapper renders interactive maps with zoom, pan, tooltips, and optional statistical layers like population or demographics. Exports include standalone HTML, static images, and GeoJSON for integration with other tools.
Can I import GeoJSON files?
Yes. Import GeoJSON to create territories, preserve attributes, and color by any property.
What export formats are available?
You can export interactive HTML, static PNG, and GeoJSON for downstream use.