Follow us on GitHub

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

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

public class MarkerShape
extends JavaScriptObject

This object defines the marker shape to use in determination of a marker's clickable region. The shape consists of two properties ° type and coord ° which define the general type of marker and coordinates specific to that type of marker.

See MarkerShape API Doc


Constructor Summary
protected MarkerShape()
          This object defines the marker shape to use in determination of a marker's clickable region.
 
Method Summary
 JsArrayInteger getCoordinates()
          gets coords (refer to setter)
 MarkerShapeType getType()
          gets gets Describes the shape's type and can be circle, poly or rect.
static MarkerShape newInstance()
          creates This object defines the marker shape to use in determination of a marker's clickable region.
 void setCoordinates(JsArrayInteger coords)
          sets The format of this attribute depends on the value of the type and follows the w3 AREA coords specification found at

See adef-coords API Doc.
 void setType(MarkerShapeType type)
          sets Describes the shape's type and can be circle, poly or rect.
 
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

MarkerShape

protected MarkerShape()
This object defines the marker shape to use in determination of a marker's clickable region. The shape consists of two properties ° type and coord ° which define the general type of marker and coordinates specific to that type of marker. use newInstance();

Method Detail

newInstance

public static final MarkerShape newInstance()
creates This object defines the marker shape to use in determination of a marker's clickable region. The shape consists of two properties ° type and coord ° which define the general type of marker and coordinates specific to that type of marker.


setCoordinates

public final void setCoordinates(JsArrayInteger coords)
sets The format of this attribute depends on the value of the type and follows the w3 AREA coords specification found at

See adef-coords API Doc. The coords attribute is an array of integers that specify the pixel position of the shape relative to the top-left corner of the target image. The coordinates depend on the value of type as follows: - circle: coords is [x1,y1,r] where x1,y2 are the coordinates of the center of the circle, and r is the radius of the circle. - poly: coords is [x1,y1,x2,y2...xn,yn] where each x,y pair contains the coordinates of one vertex of the polygon. - rect: coords is [x1,y1,x2,y2] where x1,y1 are the coordinates of the upper-left corner of the rectangle and x2,y2 are the coordinates of the lower-right coordinates of the rectangle.

Parameters:
coords - array of coords

getCoordinates

public final JsArrayInteger getCoordinates()
gets coords (refer to setter)


setType

public final void setType(MarkerShapeType type)
sets Describes the shape's type and can be circle, poly or rect.

Parameters:
type -

getType

public final MarkerShapeType getType()
gets gets Describes the shape's type and can be circle, poly or rect.



Follow us on GitHub

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