cavalry_add_dynamic_attribute
Add a dynamic attribute to a layer for JavaScript utilities. Supports int, double, bool, string, color, int2d, double2d, and position2d types.
Instructions
Add a dynamic attribute to a layer (e.g., on a JavaScript Utility). Types: "int", "double", "bool", "string", "color", "int2d", "double2d", "position2d".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | The layer ID | |
| attrName | Yes | Name for the new attribute | |
| attrType | Yes | Type of attribute: "int", "double", "bool", "string", "color", "int2d", "double2d", "position2d" |