Class ImagePointIcon


public class ImagePointIcon extends AbstractCustomPointIcon
Custom marker's icon image.
  • Constructor Details

    • ImagePointIcon

      protected ImagePointIcon(com.vaadin.server.Resource iconResource)
  • Method Details

    • getIconResource

      @Nullable public com.vaadin.server.Resource getIconResource()
    • setIconAnchor

      public ImagePointIcon setIconAnchor(double x, double y)
      Description copied from class: AbstractCustomPointIcon
      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.
      Overrides:
      setIconAnchor in class AbstractCustomPointIcon
      Returns:
      the instance on which this method was called. Useful for a fluent API.
    • setIconSize

      public ImagePointIcon setIconSize(double x, double y)
      Description copied from class: AbstractCustomPointIcon
      Sets the size of the icon in pixels.
      Overrides:
      setIconSize in class AbstractCustomPointIcon
      Returns:
      the instance on which this method was called. Useful for a fluent API.
    • setPopupAnchor

      public ImagePointIcon setPopupAnchor(double x, double y)
      Description copied from class: AbstractCustomPointIcon
      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].
      Overrides:
      setPopupAnchor in class AbstractCustomPointIcon
      Returns:
      the instance on which this method was called. Useful for a fluent API.