Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LeafletPopupOptions

Hierarchy

Index

Properties

Optional autoPan

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 autoPanPadding

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 autoPanPaddingBottomRight

autoPanPaddingBottomRight: Point

The margin between the popup and the bottom right corner of the map view after autopanning was performed.

Default value: null.

Optional autoPanPaddingTopLeft

autoPanPaddingTopLeft: Point

The margin between the popup and the top left corner of the map view after autopanning was performed.

Default value: null.

Optional closeButton

closeButton: boolean

Controls the presense of a close button in the popup.

Default value: true.

Optional closeOnClick

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 maxHeight

maxHeight: number

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

Optional maxWidth

maxWidth: number

Max width of the popup.

Default value: 300.

Optional minWidth

minWidth: number

Min width of the popup.

Default value: 50.

Optional offset

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 zoomAnimation

zoomAnimation: boolean

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

Default value: true.