addGeoJsonLayer
Add a styled GeoJSON Point, LineString, or Polygon layer. Returns layer ID for highlighting.
Instructions
Add a styled GeoJSON Point, LineString, or Polygon layer. Returns { success, data: { id, name, type, visible, color, dataRefId? }, message? }; use id with highlight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Layer ID (auto-generated if omitted) | |
| url | No | GeoJSON file URL (mutually exclusive with data, fetched in browser) | |
| data | No | GeoJSON FeatureCollection object (mutually exclusive with url) | |
| name | No | Layer display name | |
| style | No | Style config (color, opacity, pointSize, choropleth, category) | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) |