Interface PopupOptions

Index

Properties

Properties

optional public autoPan?: boolean

Set it to false if you don't want the map to do panning animation to fit the opened popup.

Default value: true.

optional public autoPanPadding?: Point

The margin between the popup and the edges of the map view after autopanning was performed.

Default value: new Point(5, 5).

optional public closeButton?: boolean

Controls the presense of a close button in the popup.

Default value: true.

optional public closeOnClick?: boolean

Set it to false if you want to override the default behavior of the popup closing when user clicks the map (set globally by the Map closePopupOnClick option).

optional public maxHeight?: number

If set, creates a scrollable container of the given height inside a popup if its content exceeds it.

optional public maxWidth?: number

Max width of the popup.

Default value: 300.

optional public minWidth?: number

Min width of the popup.

Default value: 50.

optional public offset?: Point

The offset of the popup position. Useful to control the anchor of the popup when opening it on some overlays.

Default value: new Point(0, 6).

optional public zoomAnimation?: boolean

Whether to animate the popup on zoom. Disable it if you have problems with Flash content inside popups.

Default value: true.