render_map
Draw spatial query results, GeoJSON, or SQL geometries as a coloured PNG map with an OpenStreetMap basemap, and optionally save an interactive Leaflet HTML file.
Instructions
Draw a MAP and return it as a PNG image (with an OpenStreetMap basemap when online). Pass result_ids from earlier tools (find_features, within_distance, nearest, buffer, spatial_join, bbox_of, run_sql ...) - each becomes a coloured layer - or a GeoJSON string/object, or a SQL query that returns a geometry column. Also saves the PNG and, with save_html=true, an interactive Leaflet HTML map to disk. Use this whenever the answer is spatial.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | Read-only SQL returning a geometry column (rendered as one layer). | |
| title | No | Map title. | |
| width | No | ||
| height | No | ||
| basemap | No | Draw the OpenStreetMap basemap (needs internet). false = plain background. | |
| geojson | No | A GeoJSON FeatureCollection/Feature/Geometry (object or JSON string). | |
| save_html | No | Also write an interactive Leaflet HTML file. | |
| result_ids | No | result_id values returned by other tools (drawn in order). | |
| label_property | No | Feature property to print as label (default: 'name' if few features). | |
| value_property | No | Numeric property for a graduated colour fill (choropleth), e.g. 'right_count' from spatial_join. |