java.lang.Object
io.jmix.mapsflowui.kit.component.model.style.PointStyle
Direct Known Subclasses:
MarkerStyle

public class PointStyle extends Object
Helper class for styling point Feature.
  • Field Details

    • style

      protected Style style
  • Constructor Details

    • PointStyle

      public PointStyle()
  • Method Details

    • withText

      public PointStyle withText(TextStyle textStyle)
      Sets text style for feature. Text style describes how to display text.

      Delegates to Style.setText(TextStyle).

      Parameters:
      textStyle - text style to set
      Returns:
      current instance
    • withImage

      public PointStyle withImage(ImageStyle image)
      Sets the image style. The image can contain an icon or can be an instance of RegularShape class.

      Delegates to Style.setImage(ImageStyle).

      Parameters:
      image - image style to set
      Returns:
      current instance
    • withZIndex

      public PointStyle withZIndex(Integer zIndex)
      Sets Z-index to style. It is used to order styles added to the feature.

      Delegates to Style.setZIndex(Integer).

      Parameters:
      zIndex - z-index to set
      Returns:
      current instance
    • build

      public Style build()
      Returns:
      Style object