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.streams.DownloadHandlerstatic final com.vaadin.flow.server.StreamResourceDeprecated, for removal: This API element is subject to removal in a future version.static final com.vaadin.flow.server.streams.DownloadHandlerstatic final com.vaadin.flow.server.StreamResourceDeprecated, for removal: This API element is subject to removal in a future version.useSELECTED_MARKER_DOWNLOAD_HANDLERinsteadFields inherited from class io.jmix.mapsflowui.kit.component.model.style.PointStyle
style -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stylestatic Stylestatic 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
@Deprecated(since="3.0", forRemoval=true) public static final com.vaadin.flow.server.StreamResource MARKER_RESOURCEDeprecated, for removal: This API element is subject to removal in a future version.useMARKER_DOWNLOAD_HANDLERinstead -
SELECTED_MARKER_RESOURCE
@Deprecated(since="3.0", forRemoval=true) public static final com.vaadin.flow.server.StreamResource SELECTED_MARKER_RESOURCEDeprecated, for removal: This API element is subject to removal in a future version.useSELECTED_MARKER_DOWNLOAD_HANDLERinstead -
MARKER_DOWNLOAD_HANDLER
public static final com.vaadin.flow.server.streams.DownloadHandler MARKER_DOWNLOAD_HANDLER -
SELECTED_MARKER_DOWNLOAD_HANDLER
public static final com.vaadin.flow.server.streams.DownloadHandler SELECTED_MARKER_DOWNLOAD_HANDLER
-
-
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
-
createDefaultSelectStyle
- Returns:
- a default select
Stylefor marker with corresponding icon - See Also:
-
createDefaultModifyStyle
- Returns:
- a default modify
Stylefor marker - See Also:
-
MARKER_DOWNLOAD_HANDLERinstead