Make a map to keep, share or change
render_mapOnly when the user wants a map to keep, share or change later: answers with places already show a map in the chat. Makes a hosted map (a link anyone can open, plus GeoJSON and KML for GIS tools and Google Earth) from up to 20 layers in one call. Each layer is pins (rows with lat/lng, or addresses placed for you, up to 200 addresses a call), lines or areas; one colour, or a colour per value of a field (color_by); a number field colours light to dark, in the bands the user asked for when given (bins: [25000, 100000] = under 25k, 25k to under 100k, 100k and over); names on the map if wanted (labels); up to 2,500 pins a map. Returns map_id: change the map later with update_map (the link stays the same). Same title as an earlier map = that map replaced in place, same link, the old version kept.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bins | No | With from_run, source or rows and color_by on a number: band breaks. | |
| rows | No | Shortcut for a one-layer map: rows with lat/lng or addresses. | |
| title | No | The map's title (and how to find it again). | |
| labels | No | With from_run, source or rows: names on the map. | |
| layers | No | One or more layers, drawn in order (later ones on top). | |
| legend | No | ||
| source | No | Instead of typing rows: { sheet: "<Google Sheets link>", tab?: "Sites" } (shared with the InstaMaps service account, or viewable by anyone with the link), { file: "<Drive link to a CSV or Excel file>" }, or { run: "<run_id from an earlier answer>" }. Columns are found by their headers (id, name, address or its parts, lat/lng); name them if they aren't obvious (id_column, address_column, lat_column, lng_column; from_column and to_column for road distances). Rows with coordinates are used as they are. | |
| color_by | No | With rows: the field to colour the pins by. | |
| from_run | No | A run_id from an earlier answer: its rows as the map's pins (with color_by, bins and labels), in one call. | |
| flood_zones | No | Draw the official flood zones under the layers: FEMA's in the US (they show from street level) and the Environment Agency's in England. | |
| house_districts | No | Draw the House districts on the Nov 3 2026 ballot under the layers (US): the lines in force, Missouri's 2022 lines included (its 2025 map is blocked). A tap on a district counts the map's pins inside it. |