PopupOptions
Properties
String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
Equivalent of setting both top left and bottom right auto-pan padding to the same value.
The margin between the popup and the bottom right corner of the map view after auto-panning was performed.
The margin between the popup and the top left corner of the map view after auto-panning was performed.
Controls the presence of a close button in the popup.
Set it if you want to override the default behavior of the popup closing when user clicks on the map. Defaults to the map's closePopupOnClick
option.
Set it to false
if you want to override the default behavior of the ESC key for closing of the popup.
If true, the popup/tooltip will listen to the mouse events.
Set it to true if you want to prevent users from panning the popup off of the screen while it is open.
By default, the layer will be added to the map's overlay pane. Overriding this option will cause the layer to be placed on another pane by default.