Follow us on GitHub

com.google.gwt.maps.client.overlays
Class InfoWindowOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.overlays.InfoWindowOptions

public class InfoWindowOptions
extends JavaScriptObject

InfoWindow Options

See InfoWindowOptions API Doc


Constructor Summary
protected InfoWindowOptions()
          use newInstance();
 
Method Summary
 Element getContent_Element()
          get Content to display in the InfoWindow.
 String getContent_String()
          get Content to display in the InfoWindow.
 boolean getDisableAutoPan()
          gets Disable auto-pan on open.
 int getMaxWidth()
          gets Maximum width of the infowindow, regardless of content's width.
 Size getPixelOffset()
          gets 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.
 LatLng getPosition()
          gets The LatLng at which to display this InfoWindow.
 int getZindex()
          gets All InfoWindows are displayed on the map in order of their zIndex, with higher values displaying in front of InfoWindows with lower values.
static InfoWindowOptions newInstance()
          InfoWindow Options
 void setContent(Element content)
          set Content to display in the InfoWindow.
 void setContent(String content)
          set Content to display in the InfoWindow.
 void setContent(Widget widget)
          set widget to display in infoWindow
 void setDisableAutoPan(boolean disableAutoPan)
          sets Disable auto-pan on open.
 void setMaxWidth(int width)
          sets Maximum width of the infowindow, regardless of content's width.
 void setPixelOffet(Size size)
          sets 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.
 void setPosition(LatLng position)
          sets The LatLng at which to display this InfoWindow.
 void setZindex(int zIndex)
          sets 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.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InfoWindowOptions

protected InfoWindowOptions()
use newInstance();

Method Detail

newInstance

public static final InfoWindowOptions newInstance()
InfoWindow Options


setContent

public final void setContent(Widget widget)
set widget to display in infoWindow

Parameters:
widget -

setContent

public final void setContent(String content)
set 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.

Parameters:
content -

getContent_String

public final String getContent_String()
get 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

public final void setContent(Element content)
set 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.

Parameters:
content -

getContent_Element

public final Element getContent_Element()
get 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.


setDisableAutoPan

public final void setDisableAutoPan(boolean disableAutoPan)
sets Disable auto-pan on open. By default, the info window will pan the map so that it is fully visible when it opens.

Parameters:
disableAutoPan -

getDisableAutoPan

public final boolean getDisableAutoPan()
gets Disable auto-pan on open. By default, the info window will pan the map so that it is fully visible when it opens.


setMaxWidth

public final void setMaxWidth(int width)
sets 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 -

getMaxWidth

public final int getMaxWidth()
gets 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.


setPixelOffet

public final void setPixelOffet(Size size)
sets 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 top-center of the anchor's bounds.

Parameters:
size -

getPixelOffset

public final Size getPixelOffset()
gets 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 top-center of the anchor's bounds.


setPosition

public final void setPosition(LatLng position)
sets 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:
position -

getPosition

public final LatLng getPosition()
gets The LatLng at which to display this InfoWindow. If the InfoWindow is opened with an anchor, the anchor's position will be used instead.


setZindex

public final void setZindex(int zIndex)
sets 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, InfoWinodws 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:
zIndex -

getZindex

public final int getZindex()
gets 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, InfoWinodws 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.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.