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
Modifier and TypeFieldDescriptionstatic final com.vaadin.flow.server.StreamResource
Fields inherited from class io.jmix.mapsflowui.kit.component.model.style.PointStyle
style
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Style
withImage
(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:PointStyle
Sets text style for feature. Text style describes how to display text.Delegates to
Style.setText(TextStyle)
.- Overrides:
withText
in classPointStyle
- Parameters:
textStyle
- text style to set- Returns:
- current instance
-
withImage
Description copied from class:PointStyle
Sets the image style. The image can contain an icon or can be an instance ofRegularShape
class.Delegates to
Style.setImage(ImageStyle)
.- Overrides:
withImage
in classPointStyle
- Parameters:
image
- image style to set- Returns:
- current instance
-
withZIndex
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 classPointStyle
- Parameters:
zIndex
- z-index to set- Returns:
- current instance
-
createDefaultStyle
- Returns:
- default
Style
for marker with corresponding icon
-