com.mapitz.gwt.googleMaps.client
Class GMarker

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.mapitz.gwt.googleMaps.client.GOverlay
          extended by com.mapitz.gwt.googleMaps.client.GMarker

public class GMarker
extends GOverlay

A GMarker marks a position on the map. It implements the GOverlay interface and thus is added to the map using the GMap2.addOverlay() method.
A marker object has a point, which is the geographical position where the marker is anchored on the map, and an icon. If the icon is not set in the constructor, the default icon G_DEFAULT_ICON is used.
After it is added to a map, the info window of that map can be opened through the marker. The marker object will fire mouse events and infowindow events.

Author:
aglaforge

Method Summary
static GMarker create(GLatLng point)
           
static GMarker create(GLatLng point, GMarkerOptions opts)
           
 GIcon getIcon()
           
 GLatLng getPoint()
           
 void openInfoWindow(com.google.gwt.user.client.Element content)
           
 void openInfoWindow(com.google.gwt.user.client.Element content, GInfoWindowOptions opts)
           
 void openInfoWindowHtml(java.lang.String content)
           
 void openInfoWindowHtml(java.lang.String content, GInfoWindowOptions opts)
           
 void openInfoWindowTabs(GInfoWindowTab[] tabs)
           
 void openInfoWindowTabs(GInfoWindowTab[] tabs, GInfoWindowOptions opts)
           
 void openInfoWindowTabsHtml(GInfoWindowTab[] tabs)
           
 void openInfoWindowTabsHtml(GInfoWindowTab[] tabs, GInfoWindowOptions opts)
           
 void setPoint(GLatLng point)
           
 void showMapBlowup()
           
 void showMapBlowup(GInfoWindowOptions opts)
           
 
Methods inherited from class com.mapitz.gwt.googleMaps.client.GOverlay
Copy, GetZIndex, Initialize, Redraw, Remove
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static GMarker create(GLatLng point,
                             GMarkerOptions opts)

create

public static GMarker create(GLatLng point)

openInfoWindow

public void openInfoWindow(com.google.gwt.user.client.Element content,
                           GInfoWindowOptions opts)

openInfoWindow

public void openInfoWindow(com.google.gwt.user.client.Element content)

openInfoWindowHtml

public void openInfoWindowHtml(java.lang.String content,
                               GInfoWindowOptions opts)

openInfoWindowHtml

public void openInfoWindowHtml(java.lang.String content)

openInfoWindowTabs

public void openInfoWindowTabs(GInfoWindowTab[] tabs,
                               GInfoWindowOptions opts)

openInfoWindowTabs

public void openInfoWindowTabs(GInfoWindowTab[] tabs)

openInfoWindowTabsHtml

public void openInfoWindowTabsHtml(GInfoWindowTab[] tabs,
                                   GInfoWindowOptions opts)

openInfoWindowTabsHtml

public void openInfoWindowTabsHtml(GInfoWindowTab[] tabs)

showMapBlowup

public void showMapBlowup(GInfoWindowOptions opts)

showMapBlowup

public void showMapBlowup()

getIcon

public GIcon getIcon()

getPoint

public GLatLng getPoint()

setPoint

public void setPoint(GLatLng point)