create_map_feature
Add pins, labels, regions, paths, or folders to a LegendKeeper map document using coordinates or pixel positions, with optional colors, icons, links, and folder nesting.
Instructions
Add a pin, label, region, path or folder to a map document. Coordinates are [lat, lng] in the map's frame (read_document on the map shows its bounds), or image pixels with pixel_coordinates=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | Resource id/name (or lk:// URI) the feature opens when clicked. | |
| name | Yes | ||
| type | No | Feature type. | pin |
| color | No | Region fill/border or path line color. | |
| extra | No | Any other createFeature fields (labelSize, fillOpacity, strokeWidth, textColor…). | |
| folder | No | Id of a folder feature to nest this feature in. | |
| points | No | Vertices of a region (polygon) or a path (polyline). | |
| project | No | Configured project (world) name. Omit to use the default project; see list_projects. | |
| document | No | Document id or name within the resource. Omit to pick the resource's main document. | |
| position | No | Pin/label position. | |
| resource | Yes | Resource id, or its exact name/alias (case-insensitive). | |
| is_hidden | No | ||
| icon_color | No | Pin shape color (only with a shape). | |
| icon_glyph | No | Pin icon: a Font Awesome name, e.g. 'castle'. | |
| icon_shape | No | Shape behind a pin's glyph; default 'none' (bare glyph). | |
| pixel_coordinates | No | Treat position/points as image pixels [x, y] from the top-left corner. |