Open Interactive Map to Draw Geometry
gis_open_mapOpen an interactive map to draw GIS geometry (points, lines, polygons), then retrieve the drawn shape as GeoJSON for use with flood zone and waterway analysis tools.
Instructions
Open an interactive map so the user can draw GIS geometry, then capture it.
Returns a Prefab app with (1) a link that opens a Leaflet drawing page in the browser and (2) a "Load drawn geometry" button. Workflow:
Call this tool (optionally center it with lat/lon/zoom).
The user clicks "Open drawing map", draws a polygon/line/point, clicks Save.
The user clicks "Load drawn geometry" (or you call gis_get_drawn_geometry with the session_id) to retrieve a compact GeoJSON string.
Pass that GeoJSON to nfhl_screen_flood_zone, hydro_find_waterways, etc.
Use when: "let me draw a shape / area on a map", "I want to sketch a polygon". Don't use when: the user already has coordinates (use gis_validate_geometry).
The returned app also surfaces the session_id in text so the agent can call gis_get_drawn_geometry directly if the user prefers not to click the button.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Optional initial map center latitude (WGS84 decimal degrees). | |
| lon | No | Optional initial map center longitude (WGS84 decimal degrees). | |
| zoom | No | Optional initial map zoom level (0 = world, 19 = building). |