public static class PopupOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PopupOptions.Builder |
attribution(String attribution) |
PopupOptions.Builder |
autoClose(Boolean autoClose)
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).
|
PopupOptions.Builder |
autoPan(Boolean autoPan)
Set it to false if you don't want the map to do panning animation to fit the opened popup.
|
PopupOptions.Builder |
autoPanPadding(Point autoPanPadding)
Equivalent of setting both top left and bottom right autopan padding to the same value.
|
PopupOptions.Builder |
autoPanPaddingBottomRight(Point autoPanPaddingBottomRight)
The margin between the popup and the bottom right corner of the map view after autopanning was performed.
|
PopupOptions.Builder |
autoPanPaddingTopLeft(Point autoPanPaddingTopLeft)
The margin between the popup and the top left corner of the map view after autopanning was performed.
|
PopupOptions |
build()
Builds the PopupOptions
|
PopupOptions.Builder |
className(String className)
A custom class name to assign to the popup.
|
PopupOptions.Builder |
closeButton(Boolean closeButton)
Controls the presence of a close button in the popup.
|
PopupOptions.Builder |
keepInView(Boolean keepInView)
Set it to true if you want to prevent users from panning the popup off of the screen while it is open.
|
PopupOptions.Builder |
maxHeight(Double maxHeight)
If set, creates a scrollable container of the given height inside a popup if its content exceeds it.
|
PopupOptions.Builder |
maxWidth(Double maxWidth)
Max width of the popup.
|
PopupOptions.Builder |
minWidth(Double minWidth)
Min width of the popup.
|
PopupOptions.Builder |
offset(Point offset)
The offset of the popup position.
|
PopupOptions.Builder |
pane(String pane) |
public PopupOptions.Builder maxWidth(Double maxWidth)
maxWidth
- the max widthpublic PopupOptions.Builder minWidth(Double minWidth)
minWidth
- the min widthpublic PopupOptions.Builder maxHeight(Double maxHeight)
maxHeight
- the max heightpublic PopupOptions.Builder autoPan(Boolean autoPan)
autoPan
- the auto panpublic PopupOptions.Builder keepInView(Boolean keepInView)
keepInView
- the keep in viewpublic PopupOptions.Builder closeButton(Boolean closeButton)
closeButton
- the close buttonpublic PopupOptions.Builder offset(Point offset)
offset
- the offsetpublic PopupOptions.Builder autoPanPaddingTopLeft(Point autoPanPaddingTopLeft)
autoPanPaddingTopLeft
- the auto pan padding top leftpublic PopupOptions.Builder autoPanPaddingBottomRight(Point autoPanPaddingBottomRight)
autoPanPaddingBottomRight
- the auto pan padding bottom rightpublic PopupOptions.Builder autoPanPadding(Point autoPanPadding)
autoPanPadding
- the auto pan paddingpublic PopupOptions.Builder autoClose(Boolean autoClose)
closeOnClick
- the close on clickpublic PopupOptions.Builder className(String className)
className
- the class namepublic PopupOptions.Builder pane(String pane)
public PopupOptions.Builder attribution(String attribution)
public PopupOptions build()
Copyright © 2018 G-Widgets. All rights reserved.