Interactive Map
interactive_mapDisplay interactive maps with location markers, route visualization, isochrone reachability, round trip paths, and search result markers. Supports pan, zoom, and click interactions.
Instructions
Display an interactive map using MagicLane vector tiles and MapLibre GL JS directly in the conversation. Supports multiple display types: location view, route visualization with stops, isochrone reachability areas, round trip routes, and search result markers. The map supports pan, zoom, and click interactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| display_type | Yes | What to show on the interactive map. Exactly one of: "location": single point with optional label (default; use LocationDisplayParametersSchema). "routing": calculated route with origin/destination/stops (use RoutingParametersSchema). "isochrone": reachability polygon from a departure point (use IsochroneParametersSchema). "round_trip": circular loop from a departure point (use RoundTripParametersSchema). "search_results": POI/address search results as markers (use SearchParametersSchema). | |
| zoom | No | Initial map zoom level in [0, 16]. 0 = whole world, 8 = country, 12 = city (default), 14 = neighborhood, 16 = street. IGNORED when display_type is "routing", "isochrone", or "round_trip" - those auto-fit to data bounds. | |
| parameters | Yes | Parameters for the chosen `display_type`. Shape MUST match `display_type`: "location": LocationDisplayParametersSchema; "routing": RoutingParametersSchema; "isochrone": IsochroneParametersSchema; "round_trip": RoundTripParametersSchema; "search_results": SearchParametersSchema. |