Class BaseHeatmapLayerOptions
java.lang.Object
io.jmix.mapsflowui.kit.component.model.layer.option.BaseLayerOptions
io.jmix.mapsflowui.kit.component.model.layer.option.BaseVectorLayerOptions
io.jmix.mapsflowui.kit.component.model.layer.option.BaseHeatmapLayerOptions
- All Implemented Interfaces:
BaseHeatmapLayer.HasBaseHeatmapLayerOptions,BaseHeatmapLayer.HasBlur,BaseHeatmapLayer.HasGradient,BaseHeatmapLayer.HasMaxWeight,BaseHeatmapLayer.HasRadius,BaseHeatmapLayer.HasWeightProperty,BaseVectorLayer.HasBackground,BaseVectorLayer.HasBaseVectorLayerOptions,BaseVectorLayer.HasDeclutter,BaseVectorLayer.HasRenderBuffer,BaseVectorLayer.HasUpdateWhileAnimating,BaseVectorLayer.HasUpdateWhileInteracting,HasBaseLayerOptions
- Direct Known Subclasses:
HeatmapLayerOptions
public abstract class BaseHeatmapLayerOptions
extends BaseVectorLayerOptions
implements BaseHeatmapLayer.HasBaseHeatmapLayerOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Doubleprotected Doubleprotected Doubleprotected StringFields inherited from class io.jmix.mapsflowui.kit.component.model.layer.option.BaseVectorLayerOptions
background, declutter, renderBuffer, updateWhileAnimating, updateWhileInteracting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlur()voidSets the blur size of heat point in pixels.voidsetGradient(List<String> gradient) Sets the color gradient of the heatmap, specified as a list of CSS color strings.voidsetMaxWeight(Double maxWeight) Sets the maximum weight (intensity).voidSets the radius size of heat point in pixels.voidsetWeightProperty(String weightProperty) Sets weight (intensity) property that is defined in a feature or in an entity.Methods inherited from class io.jmix.mapsflowui.kit.component.model.layer.option.BaseVectorLayerOptions
getBackground, getDeclutter, getRenderBuffer, getUpdateWhileAnimating, getUpdateWhileInteracting, setBackground, setDeclutter, setRenderBuffer, setUpdateWhileAnimating, setUpdateWhileInteractingMethods inherited from class io.jmix.mapsflowui.kit.component.model.layer.option.BaseLayerOptions
getClassName, getExtent, getMaxZoom, getMinZoom, getOpacity, getVisible, getZIndex, setClassName, setExtent, setMaxZoom, setMinZoom, setOpacity, setVisible, setZIndex
-
Field Details
-
gradient
-
radius
-
blur
-
weightProperty
-
maxWeight
-
-
Constructor Details
-
BaseHeatmapLayerOptions
public BaseHeatmapLayerOptions()
-
-
Method Details
-
getGradient
- Specified by:
getGradientin interfaceBaseHeatmapLayer.HasGradient- Returns:
- list of CSS color strings or
nullif not set
-
setGradient
Description copied from interface:BaseHeatmapLayer.HasGradientSets the color gradient of the heatmap, specified as a list of CSS color strings.The default value is
['#00f', '#0ff', '#0f0', '#ff0', '#f00'].For more details see: setGradient() docs
- Specified by:
setGradientin interfaceBaseHeatmapLayer.HasGradient- Parameters:
gradient- list of CSS color strings
-
getRadius
- Specified by:
getRadiusin interfaceBaseHeatmapLayer.HasRadius- Returns:
- radius size in pixels or
nullif not set
-
setRadius
Description copied from interface:BaseHeatmapLayer.HasRadiusSets the radius size of heat point in pixels. The default value is8.For more details see: setRadius() docs
- Specified by:
setRadiusin interfaceBaseHeatmapLayer.HasRadius- Parameters:
radius- radius size in pixels
-
getBlur
- Specified by:
getBlurin interfaceBaseHeatmapLayer.HasBlur- Returns:
- the blur size in pixels or
nullif not set
-
setBlur
Description copied from interface:BaseHeatmapLayer.HasBlurSets the blur size of heat point in pixels. The default value is15.- Specified by:
setBlurin interfaceBaseHeatmapLayer.HasBlur- Parameters:
blur- the blur size in pixels
-
getWeightProperty
- Specified by:
getWeightPropertyin interfaceBaseHeatmapLayer.HasWeightProperty- Returns:
- weight property or
nullif not set
-
setWeightProperty
Description copied from interface:BaseHeatmapLayer.HasWeightPropertySets weight (intensity) property that is defined in a feature or in an entity. This property must contain values in range[0.0, 1.0].- Specified by:
setWeightPropertyin interfaceBaseHeatmapLayer.HasWeightProperty- Parameters:
weightProperty- property in a feature or in an entity
-
getMaxWeight
- Specified by:
getMaxWeightin interfaceBaseHeatmapLayer.HasMaxWeight- Returns:
- the maximum weight or
nullif not set
-
setMaxWeight
Description copied from interface:BaseHeatmapLayer.HasMaxWeightSets the maximum weight (intensity). If a point contains weight value that is greater than maximum weight, the point value will be cut by the maximum one. The default value is1.- Specified by:
setMaxWeightin interfaceBaseHeatmapLayer.HasMaxWeight- Parameters:
maxWeight- maximum weight
-