PopupOptions class

Inheritance
Annotations
  • @JS()
  • @anonymous

Constructors

PopupOptions({Point? offset, String? pane, String? attribution, double? maxWidth, double? minWidth, double? maxHeight, double? autoPan, Point? autoPanPaddingTopLeft, Point? autoPanPaddingBottomRight, Point? autoPanPadding, bool? closeButton, bool? autoClose, bool? closeOnEscapeKey, bool? closeOnClick, String? className})
factory

Properties

attribution String
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.
getter/setter pairinherited
autoClose bool
Set it to false if you want to override the default behavior of the popup closing when another popup is opened.
getter/setter pair
autoPan bool
Set it to false if you don't want the map to do panning animation to fit the opened popup.
getter/setter pair
autoPanPadding Point
Equivalent of setting both top left and bottom right autopan padding to the same value. Set it to true if you want to prevent users from panning the popup off of the screen while it is open
getter/setter pair
autoPanPaddingBottomRight Point
The margin between the popup and the bottom right corner of the map view after autopanning was perormed
getter/setter pair
autoPanPaddingTopLeft Point
The margin between the popup and the top left corner of the map view after autopanning was performed
getter/setter pair
className String
A custom CSS class name to assign to the popup.
getter/setter pairoverride
closeButton bool
Controls the presence of a close button in the popup.
getter/setter pair
closeOnClick bool
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.
getter/setter pair
closeOnEscapeKey bool
Set it to false if you want to override the default behavior of the ESC key for closing of the popup.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxHeight double
If set, creates a scrollable container of the given height inside a popup if its content exceeds it
getter/setter pair
maxWidth double
Max width of the popup, in pixels.
getter/setter pair
minWidth double
Min width of the popup, in pixels.
getter/setter pair
offset Point
The offset of the popup position. Useful to control the anchor of the popup when opening it on some overlays.
getter/setter pairinherited
pane String
Map pane where the popup will be added.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited