Add bivariate fusion layer
add_fusion_layerSpatially join two existing layers and add a new layer that encodes both values per region as a 3x3 bivariate choropleth. Both layers must already exist in the workspace (call build_map or add_layer first). Auto-detects the numeric value field from each layer's viz config; pass value_field_a / value_field_b to override. Returns the new layer_id, correlation r, and matched-feature count. Required: map_id, layer_a_id, layer_b_id, rationale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | bivariate | |
| map_id | Yes | ||
| rationale | Yes | Short audit-log label (≤300 chars) stating the user-facing goal this call serves, e.g. "add wildfire layer for the user's California query". Required on every call. Stored in the operations log so map edits stay traceable — we never see your chat history. | |
| layer_a_id | Yes | ||
| layer_b_id | Yes | ||
| new_layer_id | No | ||
| value_field_a | No | ||
| value_field_b | No |