java.lang.Object
com.dlsc.gmapsfx.javascript.JavascriptObject
com.dlsc.gmapsfx.javascript.object.InfoWindowOptions
public class InfoWindowOptions extends JavascriptObject
Options for setting an InfoWindow on a Map. This class corresponds to google.maps.InfoWindowOptions" in
the Google Maps JavaScript API.
- Author:
- Rob Terpilowski
-
Field Summary
Fields inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
jsObject, objectCounter, peerRegistry, runtime, variableName -
Constructor Summary
Constructors Constructor Description InfoWindowOptions()Default constructor -
Method Summary
Modifier and Type Method Description InfoWindowOptionscontent(String content)Content to display in the InfoWindow.InfoWindowOptionsdisableAutoPan(boolean disabled)Disable auto-pan on open.InfoWindowOptionsmaxWidth(int width)Maximum width of the infowindow, regardless of content's width.InfoWindowOptionspixelOffset(Size size)The offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored.InfoWindowOptionsposition(LatLong latlong)The LatLng at which to display this InfoWindow.InfoWindowOptionszIndex(int index)All InfoWindows are displayed on the map in order of their zIndex, with higher values displaying in front of InfoWindows with lower values.Methods inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
checkBoolean, checkInteger, checkUndefined, getJSObject, getNextVariableName, getProperty, getProperty, getVariableName, invokeJavascript, invokeJavascript, invokeJavascriptReturnValue, invokeJavascriptReturnValue, isMemberDefined, setProperty, setProperty, setProperty
-
Constructor Details
-
InfoWindowOptions
public InfoWindowOptions()Default constructor
-
-
Method Details
-
content
Content to display in the InfoWindow. This can be an HTML element, a plain-text string, or a string containing HTML. The InfoWindow will be sized according to the content.- Parameters:
content-- Returns:
- this instance of the InfoWindowOptions
-
disableAutoPan
Disable auto-pan on open. By default, the info window will pan the map so that it is fully visible when it opens.- Parameters:
disabled- true if it should be disabled- Returns:
- this instance of the InfoWindowOptions
-
maxWidth
Maximum width of the infowindow, regardless of content's width. This value is only considered if it is set before a call to open. To change the maximum width when changing content, call close, setOptions, and then open.- Parameters:
width- The max width- Returns:
- this instance of the InfoWindowOptions
-
pixelOffset
The offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored. If an InfoWindow is opened with an anchor, the pixelOffset will be calculated from the anchor's anchorPoint property.- Parameters:
size- The offset in pixels.- Returns:
- this instance of the InfoWindowOptions
-
position
The LatLng at which to display this InfoWindow. If the InfoWindow is opened with an anchor, the anchor's position will be used instead.- Parameters:
latlong- The position of the window- Returns:
- this instance of the InfoWindowOptions
-
zIndex
All InfoWindows are displayed on the map in order of their zIndex, with higher values displaying in front of InfoWindows with lower values. By default, InfoWindows are displayed according to their latitude, with InfoWindows of lower latitudes appearing in front of InfoWindows at higher latitudes. InfoWindows are always displayed in front of markers.- Parameters:
index- The index to set this window to- Returns:
- this instance of the InfoWindowOptions
-