Interface IAnchor

All Known Subinterfaces:
IAnchorWrapped, IMarker, IMarkerWrapped

public interface IAnchor
Represents a map component that can be used to position ("anchor") another component on the map. As of Google Maps API v3.39, the only anchor object available is a Marker. The typical component to be anchored is an InfoWindow.
Author:
swong
  • Method Summary

    Modifier and Type Method Description
    java.awt.geom.Point2D.Double getPixelOffset()
    A pixel offset from the LatLng position that the anchored object, e.g.
    ILatLng getPosition()
    The LatLng position of this anchor point.
  • Method Details

    • getPosition

      ILatLng getPosition()
      The LatLng position of this anchor point.
      Returns:
      The ILatLng of the anchor's location
    • getPixelOffset

      java.awt.geom.Point2D.Double getPixelOffset()
      A pixel offset from the LatLng position that the anchored object, e.g. an IInfoWindow is located. This corresponds to the anchorPoint property of a Google Maps anchor object.
      Returns:
      The pixel offset of an entity with respect to the anchor position.