Class GInfoWindow

java.lang.Object
org.wicketstuff.gmap.api.GOverlay
org.wicketstuff.gmap.api.GInfoWindow
All Implemented Interfaces:
Serializable

public class GInfoWindow extends GOverlay
Represents an Google Maps API's GInfoWindow. You can attach following events to an InfoWindow in case you want to react to one of those:
See Also:
  • Constructor Details

    • GInfoWindow

      public GInfoWindow(GLatLng latLng, String content)
      Constructor.
      Parameters:
      latLng - the position where the info window should be opened
      content - the (HTML) content which should be shown. Any containing apostrophes will be escaped.
    • GInfoWindow

      public GInfoWindow(GLatLng latLng, Component content)
      Constructor.
      Parameters:
      latLng - the position where the info window should be opened
      content - the Component which should be shown. Internally uses document.getElementById('" + markupId + "') to link to the GInfoWindow
  • Method Details

    • getJSconstructor

      public String getJSconstructor()
      Description copied from class: GOverlay
      Implement the needed JavaScript constructor for the corresponding JavaScript object.
      Specified by:
      getJSconstructor in class GOverlay
      Returns:
      String representing the JavaScript constructor.
    • updateOnAjaxCall

      protected void updateOnAjaxCall(AjaxRequestTarget target, GEvent overlayEvent)
      Update state from a request to an AJAX target.
      Specified by:
      updateOnAjaxCall in class GOverlay
    • isOpen

      public boolean isOpen()
    • close

      public void close()
    • getLatLng

      public GLatLng getLatLng()
    • setMaxWidth

      public void setMaxWidth(Integer maxWidth)
    • setLatLng

      public void setLatLng(GLatLng latLng)
    • getContent

      public String getContent()
    • setContent

      public void setContent(String content)
    • getMaxWidth

      public Integer getMaxWidth()
    • getDisableAutoPan

      public Boolean getDisableAutoPan()
    • setDisableAutoPan

      public void setDisableAutoPan(Boolean disableAutoPan)
    • getzIndex

      public Integer getzIndex()
    • setzIndex

      public void setzIndex(Integer zIndex)