PopupContentItemSchema
constPopupContentItemSchema:z.ZodType<{[key:string]:unknown;alt?:string;else?:string;format?:string;href?:string;property?:string;src?:string;str?:string| {$html:string; };text?:string; }>
Defined in: packages/core/src/schemas/layer.schema.ts:99
Content item for popup or dynamic text rendering.
Remarks
Section titled “Remarks”Supports static strings, dynamic property interpolation, and fallback values.
Properties:
str- Static text stringproperty- Feature property name to interpolateelse- Fallback value if property is missingformat- Number format string (e.g., “,.0f” for thousands separator)href- Link URL (for anchor tags)text- Link textsrc- Image/iframe source URLalt- Image alt text
Examples
Section titled “Examples”Static Text
- str: "Population: "Dynamic Property
- property: name else: "Unknown"Formatted Number
- property: population format: ",.0f"