java.lang.Object
io.jmix.mapsflowui.kit.component.model.style.PointStyle
io.jmix.mapsflowui.kit.component.model.style.MarkerStyle

public class MarkerStyle extends PointStyle
Helper class for styling marker Feature.
  • Field Details

    • MARKER_RESOURCE

      public static final com.vaadin.flow.server.StreamResource MARKER_RESOURCE
    • SELECTED_MARKER_RESOURCE

      public static final com.vaadin.flow.server.StreamResource SELECTED_MARKER_RESOURCE
  • Constructor Details

    • MarkerStyle

      public MarkerStyle()
  • Method Details

    • withText

      public MarkerStyle withText(TextStyle textStyle)
      Description copied from class: PointStyle
      Sets text style for feature. Text style describes how to display text.

      Delegates to Style.setText(TextStyle).

      Overrides:
      withText in class PointStyle
      Parameters:
      textStyle - text style to set
      Returns:
      current instance
    • withImage

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

      Delegates to Style.setImage(ImageStyle).

      Overrides:
      withImage in class PointStyle
      Parameters:
      image - image style to set
      Returns:
      current instance
    • withZIndex

      public MarkerStyle withZIndex(Integer zIndex)
      Description copied from class: PointStyle
      Sets Z-index to style. It is used to order styles added to the feature.

      Delegates to Style.setZIndex(Integer).

      Overrides:
      withZIndex in class PointStyle
      Parameters:
      zIndex - z-index to set
      Returns:
      current instance
    • createDefaultStyle

      public static Style createDefaultStyle()
      Returns:
      default Style for marker with corresponding icon
    • createDefaultSelectionStyle

      public static Style createDefaultSelectionStyle()
    • createDefaultModifyStyle

      public static Style createDefaultModifyStyle()