public class InfoWindow extends MapObject
| Modifier and Type | Class and Description |
|---|---|
protected static class |
InfoWindow.Property |
| Constructor and Description |
|---|
InfoWindow(Map map)
Creates new InfoWindow object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this InfoWindow.
|
java.lang.String |
getContent()
Returns content of this InfoWindow.
|
LatLng |
getPosition()
Returns position of this InfoWindow.
|
double |
getZIndex()
Returns z-index of this InfoWindow.
|
void |
open(Map map)
Opens this InfoWindow on the given map.
|
void |
open(Map map,
java.lang.Object anchor)
Opens this InfoWindow on the given map.
|
void |
open(StreetViewPanorama streetViewPanorama)
Opens this InfoWindow on the given street view.
|
void |
open(StreetViewPanorama streetViewPanorama,
java.lang.Object anchor)
Opens this InfoWindow on the given street view.
|
void |
setContent(java.lang.String content)
Sets new window content.
|
void |
setOptions(InfoWindowOptions options)
Sets window options.
|
void |
setPosition(LatLng position)
Sets new window position.
|
void |
setZIndex(double index)
Sets new window z-index.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updatePropertypublic InfoWindow(Map map)
map - owner Map objectpublic void close()
public java.lang.String getContent()
@Nullable public LatLng getPosition()
public double getZIndex()
public void open(Map map)
map - owner of info windowpublic void open(Map map, java.lang.Object anchor)
map - owner of info windowanchor - map object associated with windowpublic void open(StreetViewPanorama streetViewPanorama)
streetViewPanorama - owner of info windowpublic void open(StreetViewPanorama streetViewPanorama, @Nullable java.lang.Object anchor)
streetViewPanorama - owner of info windowanchor - map object associated with windowpublic void setContent(java.lang.String content)
content - new contentpublic void setOptions(InfoWindowOptions options)
options - new optionspublic void setPosition(LatLng position)
position - new positionpublic void setZIndex(double index)
index - new z-index