Home > @magiclane/maps-sdk > PopupOptions
PopupOptions interface
Options for popups opened with GemMap.showPopup().
Signature:
export interface PopupOptions Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | (Optional) Which side of the coordinate the popup sits on. Default: 'bottom' edge of the popup points at the coordinate (popup above it). | ||
string | (Optional) Extra class name on the popup container (styling hook). | ||
boolean | (Optional) Render an × close button. Default true. | ||
boolean | (Optional) Clicking the map closes the popup. Default true. | ||
string | (Optional) CSS max-width of the popup body. Default '260px'. | ||
number | (Optional) Pixels between the coordinate and the popup. Default 0. |