Change a kept map
update_mapChange a map made with render_map (or a tool's render): add or remove layers; move, rename or add pins (by id, with lat/lng or an address); remove pins; recolour a layer (one colour, or by a field's values, with colours per value if wanted, or by a number in the user's own bands: bins); show or hide names or a whole layer; rename the map; draw or remove the flood zones or the House districts on the Nov 3 2026 ballot. Several changes in one call. The link stays the same, and every earlier version is kept: revert_to puts one back. get_map lists the layers, pin ids and fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map | Yes | The map_id or link render_map returned. | |
| title | No | A new title. | |
| legend | No | ||
| revert_to | No | Put this earlier version back (it becomes the newest version; nothing is lost). | |
| add_layers | No | ||
| flood_zones | No | true: draw the official flood zones under the layers (FEMA in the US, the Environment Agency in England); false: take them off. | |
| remove_layers | No | Names of layers to remove. | |
| remove_points | No | ||
| update_layers | No | ||
| upsert_points | No | Move, rename or re-field a pin by its id, or add a new one (new pins need lat/lng or an address). | |
| house_districts | No | true: draw the House districts on the Nov 3 2026 ballot under the layers (US; Missouri on its 2022 lines); false: take them off. |