Constructor and Description |
---|
PopupOptions()
Creates a PopupOptions configuration object
|
Modifier and Type | Method and Description |
---|---|
PopupOptions |
setAutoPan(boolean autoPan)
Sets autoPan option
|
PopupOptions |
setAutoPanPadding(Point autoPanPadding)
Sets autoPanPadding option
|
PopupOptions |
setAutoPanPaddingBottomRight(Point autoPanPaddingBottomRight)
Sets autoPanPaddingBottomRight option
|
PopupOptions |
setAutoPanPaddingTopLeft(Point autoPanPaddingTopLeft)
Sets autoPanPaddingTopLeft option
|
PopupOptions |
setClassName(String className)
Sets className option
|
PopupOptions |
setCloseButton(boolean closeButton)
Sets closeButton option
|
PopupOptions |
setCloseOnClick(boolean closeOnClick)
Sets closeOnClick option
|
PopupOptions |
setKeepInView(boolean keepInView)
Sets keepInView option
|
PopupOptions |
setMaxHeight(int maxHeight)
Sets maxHeight option
|
PopupOptions |
setMaxWidth(int maxWidth)
Sets maxWidth option
|
PopupOptions |
setMinWidth(int minWidth)
Sets minWidth option
|
PopupOptions |
setOffset(Point offset)
Sets offset option
|
PopupOptions |
setZoomAnimation(boolean zoomAnimation)
Sets zoomAnimation option
|
public PopupOptions setMaxWidth(int maxWidth)
maxWidth
- Max width of the popup.public PopupOptions setMinWidth(int minWidth)
minWidth
- Min width of the popup.public PopupOptions setMaxHeight(int maxHeight)
maxHeight
- If set, creates a scrollable container of the given
height inside a popup if its content exceeds it.public PopupOptions setAutoPan(boolean autoPan)
autoPan
- Set it to false
if you don't want the map to
do panning animation to fit the opened popup.public PopupOptions setKeepInView(boolean keepInView)
keepInView
- Set it to true
if you want to prevent
users from panning the popup off of the screen while it is open.public PopupOptions setCloseButton(boolean closeButton)
closeButton
- Controls the presense of a close button in the popup.public PopupOptions setOffset(Point offset)
offset
- The offset of the popup position. Useful to control the
anchor of the popup when opening it on some overlays.public PopupOptions setAutoPanPaddingTopLeft(Point autoPanPaddingTopLeft)
autoPanPaddingTopLeft
- The margin between the popup and the top
left corner of the map view after autopanning was performed.public PopupOptions setAutoPanPaddingBottomRight(Point autoPanPaddingBottomRight)
autoPanPaddingBottomRight
- The margin between the popup and the
bottom right corner of the map view after autopanning was performed.public PopupOptions setAutoPanPadding(Point autoPanPadding)
autoPanPadding
- Equivalent of setting both top left and bottom
right autopan padding to the same value.public PopupOptions setZoomAnimation(boolean zoomAnimation)
zoomAnimation
- Whether to animate the popup on zoom. Disable it if
you have problems with Flash content inside popups.public PopupOptions setCloseOnClick(boolean closeOnClick)
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).public PopupOptions setClassName(String className)
className
- A custom class name to assign to the popup.Copyright © 2017. All rights reserved.