Rivers & Lakes

Adding hydrological features to your maps.

Rivers & Lakes

Add rivers, lakes, and other water features to your maps for more detailed geographic representation.

Overview

SMAvatar includes hydrological data for:

  • Major rivers and their tributaries
  • Lakes and reservoirs
  • Coastlines and water bodies

Enabling Features

Add show_features: true to include all available water features:

{
  "location_id": "bdd56f14-e776-418a-ab18-89c8138df978",
  "theme": "modern",
  "configuration": {
    "show_features": true
  }
}

Selecting Specific Features

For more control, specify exactly which features to display:

{
  "configuration": {
    "show_features": true,
    "selected_features": [
      "river-columbia-3-0",
      "river-mississippi-2-0"
    ]
  }
}

Discovering Features

Use the MCP server to find available features for a location:

# Get features in a bounding box
curl 'https://api.smavatar.com/api/mcp/tools/list-features?location_id=bdd56f14-e776-418a-ab18-89c8138df978&type=river'

Response:

{
  "success": true,
  "data": [
    {
      "id": "river-network-uuid",
      "name": "Mississippi River",
      "code": "river-mississippi-2-0",
      "type": "river",
      "importance": 2
    },
    {
      "id": "river-network-uuid-2",
      "name": "Columbia River",
      "code": "river-columbia-3-0",
      "type": "river",
      "importance": 3
    }
  ]
}

Feature Labels

Show labels on water features:

{
  "configuration": {
    "show_features": true,
    "show_river_labels": true,
    "show_lake_labels": true
  }
}

Feature Types

TypeDescription
riverRivers and streams
lakeLakes and reservoirs
river_systemComplete river networks
lake_systemLake systems

Complete Example

Map of California with major rivers:

curl -X POST '.../jobs/maps' \
  -H 'Authorization: Bearer {api_key}' \
  -H 'Content-Type: application/json' \
  -d '{
    "location_id": "{california-location-id}",
    "width": 1400,
    "height": 900,
    "theme": "modern",
    "output_format": "png",
    "configuration": {
      "show_features": true,
      "show_river_labels": true,
      "show_lake_labels": true
    }
  }'

Importance Levels

Features have importance levels (1-5) where lower is more important:

LevelDescription
1Major features (Mississippi, Great Lakes)
2Significant features
3Notable features
4Minor features
5Small features

Filter by importance:

curl 'https://api.smavatar.com/api/mcp/tools/list-features?location_id=...&max_importance=2'

API Key Required

The list-features endpoint requires an API key. This protects our detailed geographic data.

Next Steps

Themes

Style your feature-rich maps.

Highlighting

Combine features with region highlighting.

Built with Nuxt UI • © 2025