Class MarkerStyle
java.lang.Object
io.jmix.mapsflowui.kit.component.model.style.PointStyle
io.jmix.mapsflowui.kit.component.model.style.MarkerStyle
Helper class for styling marker
Feature.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.vaadin.flow.server.StreamResourceFields inherited from class io.jmix.mapsflowui.kit.component.model.style.PointStyle
style -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StylewithImage(ImageStyle image) Sets the image style.Sets text style for feature.withZIndex(Integer zIndex) Sets Z-index to style.Methods inherited from class io.jmix.mapsflowui.kit.component.model.style.PointStyle
build
-
Field Details
-
MARKER_RESOURCE
public static final com.vaadin.flow.server.StreamResource MARKER_RESOURCE
-
-
Constructor Details
-
MarkerStyle
public MarkerStyle()
-
-
Method Details
-
withText
Description copied from class:PointStyleSets text style for feature. Text style describes how to display text.Delegates to
Style.setText(TextStyle).- Overrides:
withTextin classPointStyle- Parameters:
textStyle- text style to set- Returns:
- current instance
-
withImage
Description copied from class:PointStyleSets the image style. The image can contain an icon or can be an instance ofRegularShapeclass.Delegates to
Style.setImage(ImageStyle).- Overrides:
withImagein classPointStyle- Parameters:
image- image style to set- Returns:
- current instance
-
withZIndex
Description copied from class:PointStyleSets Z-index to style. It is used to order styles added to the feature.Delegates to
Style.setZIndex(Integer).- Overrides:
withZIndexin classPointStyle- Parameters:
zIndex- z-index to set- Returns:
- current instance
-
createDefaultStyle
- Returns:
- default
Stylefor marker with corresponding icon
-