Class AbstractCustomPointIcon

Direct Known Subclasses:
DivPointIcon, ImagePointIcon

public abstract class AbstractCustomPointIcon extends PointStyle
  • Constructor Details

    • AbstractCustomPointIcon

      public AbstractCustomPointIcon()
  • Method Details

    • getIconAnchor

      public double[] getIconAnchor()
    • setIconAnchor

      public AbstractCustomPointIcon setIconAnchor(double x, double y)
      Sets the coordinates of the "tip" of the icon in pixels (relative to its top left corner). The icon will be aligned so that this point matches the geographical coordinates of a layer's point. By default: centered if size is specified and equals the top left corner when size is not specified.
      Parameters:
      x -
      y -
      Returns:
      the instance on which this method was called. Useful for a fluent API.
    • getIconSize

      public double[] getIconSize()
    • setIconSize

      public AbstractCustomPointIcon setIconSize(double x, double y)
      Sets the size of the icon in pixels.
      Parameters:
      x -
      y -
      Returns:
      the instance on which this method was called. Useful for a fluent API.
    • getPopupAnchor

      public double[] getPopupAnchor()
    • setPopupAnchor

      public AbstractCustomPointIcon setPopupAnchor(double x, double y)
      Sets the coordinates of the point from which popups will open (relative to the icon anchor). By default: equals the icon anchor, so relative coordinates = [0, 0].
      Parameters:
      x -
      y -
      Returns:
      the instance on which this method was called. Useful for a fluent API.