public class InfoWindowOptions extends MapObject
Constructor and Description |
---|
InfoWindowOptions()
Creates new InfoWindowOptions object.
|
InfoWindowOptions(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Returns value of content property.
|
boolean |
getDisableAutoPan()
Returns value of disableAutoPan property.
|
double |
getMaxWidth()
Returns value of maxWidth property.
|
Size |
getPixelOffset()
Returns value of pixelOffset property.
|
LatLng |
getPosition()
Returns value of position property.
|
double |
getZIndex()
Returns value of zIndex property.
|
void |
setContent(java.lang.String value)
Sets new value for content property.
|
void |
setDisableAutoPan(boolean value)
Sets new value for disableAutoPan property.
|
void |
setMaxWidth(double value)
Sets new value for maxWidth property.
|
void |
setPixelOffset(Size value)
Sets new value for pixelOffset property.
|
void |
setPosition(LatLng value)
Sets new value for position property.
|
void |
setZIndex(double value)
Sets new value for zIndex property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public InfoWindowOptions()
@Deprecated public InfoWindowOptions(Map map)
map
- owner Map objectpublic java.lang.String getContent()
Represents 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. To set an explicit size for the content, set content to be a HTML element with that size.
setContent(java.lang.String)
public void setContent(java.lang.String value)
value
- new property valuegetContent()
public boolean getDisableAutoPan()
Disables auto-pan on open. By default, the info window will pan the map so that it is fully visible when it opens.
setDisableAutoPan(boolean)
public void setDisableAutoPan(boolean value)
value
- new property valuegetDisableAutoPan()
public double getMaxWidth()
Represents maximum width of the info window, 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.
setMaxWidth(double)
public void setMaxWidth(double value)
value
- new property valuegetMaxWidth()
public double getZIndex()
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.
setZIndex(double)
public void setZIndex(double value)
value
- new property valuegetZIndex()
public Size getPixelOffset()
Represents 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.
setPixelOffset(com.teamdev.jxmaps.Size)
public void setPixelOffset(Size value)
value
- new property valuegetPixelOffset()
public LatLng getPosition()
Represents the LatLng at which to display this InfoWindow. If the InfoWindow is opened with an anchor, the anchor's position will be used instead.
setPosition(com.teamdev.jxmaps.LatLng)
public void setPosition(LatLng value)
value
- new property valuegetPosition()