public static class PopupOptions.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PopupOptions.Builder |
autoPan(java.lang.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.Builder |
closeButton(java.lang.Boolean closeButton)
Controls the presence of a close button in the popup.
|
PopupOptions.Builder |
closeOnClick(java.lang.Boolean closeOnClick)
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 |
keepInView(java.lang.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(java.lang.Number maxHeight)
If set, creates a scrollable container of the given height inside a popup if its content exceeds it.
|
PopupOptions.Builder |
maxWidth(java.lang.Number maxWidth)
Max width of the popup.
|
PopupOptions.Builder |
minWidth(java.lang.Number minWidth)
Min width of the popup.
|
PopupOptions.Builder |
offset(Point offset)
The offset of the popup position.
|
PopupOptions.Builder |
zoomAnimation(java.lang.Boolean zoomAnimation)
Whether to animate the popup on zoom.
|
public PopupOptions.Builder maxWidth(java.lang.Number maxWidth)
maxWidth - the max widthpublic PopupOptions.Builder minWidth(java.lang.Number minWidth)
minWidth - the min widthpublic PopupOptions.Builder maxHeight(java.lang.Number maxHeight)
maxHeight - the max heightpublic PopupOptions.Builder autoPan(java.lang.Boolean autoPan)
autoPan - the auto panpublic PopupOptions.Builder keepInView(java.lang.Boolean keepInView)
keepInView - the keep in viewpublic PopupOptions.Builder closeButton(java.lang.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 zoomAnimation(java.lang.Boolean zoomAnimation)
zoomAnimation - the zoom animationpublic PopupOptions.Builder closeOnClick(java.lang.Boolean closeOnClick)
closeOnClick - the close on clickpublic PopupOptions build()