Class HeatmapLayer
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.layer.Layer<S>
io.jmix.mapsflowui.kit.component.model.layer.BaseVectorLayer<AbstractVectorSource>
io.jmix.mapsflowui.kit.component.model.layer.BaseHeatmapLayer
io.jmix.mapsflowui.component.model.layer.HeatmapLayer
- All Implemented Interfaces:
BaseHeatmapLayer.HasBaseHeatmapLayerOptions,BaseHeatmapLayer.HasBlur,BaseHeatmapLayer.HasGradient,BaseHeatmapLayer.HasMaxWeight,BaseHeatmapLayer.HasRadius,BaseHeatmapLayer.HasWeightProperty,HasBaseLayerOptions,Serializable,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class HeatmapLayer
extends BaseHeatmapLayer
implements org.springframework.context.ApplicationContextAware, BaseHeatmapLayer.HasBaseHeatmapLayerOptions
Layer for rendering vector data as a heatmap.
For more details see: Heatmap docs
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.layer.BaseHeatmapLayer
BaseHeatmapLayer.HasBaseHeatmapLayerOptions, BaseHeatmapLayer.HasBlur, BaseHeatmapLayer.HasGradient, BaseHeatmapLayer.HasMaxWeight, BaseHeatmapLayer.HasRadius, BaseHeatmapLayer.HasWeightPropertyNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.layer.BaseVectorLayer
BaseVectorLayer.HasBackground, BaseVectorLayer.HasBaseVectorLayerOptions, BaseVectorLayer.HasDeclutter, BaseVectorLayer.HasRenderBuffer, BaseVectorLayer.HasUpdateWhileAnimating, BaseVectorLayer.HasUpdateWhileInteractingNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextFields inherited from class io.jmix.mapsflowui.kit.component.model.layer.BaseVectorLayer
stylesFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HeatmapLayerOptionsgetBlur()protected HeatmapLayerOptions<S extends AbstractVectorSource>
Sprotected StringgetType()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) 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.voidsetSource(AbstractVectorSource source) Sets source to the layer.voidsetWeightProperty(String weightProperty) Sets weight (intensity) property that is defined in a feature or in an entity.SeesetBlur(Double).withClassName(String className) withExtent(Extent extent) withGradient(List<String> gradient) SeesetGradient(List).SeeLayer.setId(String).withMaxWeight(Double maxWeight) SeesetMaxWeight(Double).withMaxZoom(Double maxZoom) withMinZoom(Double minZoom) withOpacity(Double opacity) withRadius(Double radius) SeesetRadius(Double).withSource(AbstractVectorSource source) withVisible(Boolean visible) withWeightProperty(String weightProperty) withZIndex(Integer zIndex) Methods inherited from class io.jmix.mapsflowui.kit.component.model.layer.BaseVectorLayer
addStyles, getBackground, getDeclutter, getRenderBuffer, getStyles, getUpdateWhileAnimating, getUpdateWhileInteracting, removeAllStyles, removeStyles, setBackground, setDeclutter, setRenderBuffer, setUpdateWhileAnimating, setUpdateWhileInteractingMethods inherited from class io.jmix.mapsflowui.kit.component.model.layer.Layer
getClassName, getExtent, getId, getMaxZoom, getMinZoom, getOpacity, getVisible, getZIndex, setClassName, setExtent, setId, setMaxZoom, setMinZoom, setOpacity, setVisible, setZIndexMethods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
HeatmapLayer
public HeatmapLayer()
-
-
Method Details
-
getType
- Specified by:
getTypein classMapObservableObject
-
createOptions
- Specified by:
createOptionsin classLayer<AbstractVectorSource>
-
getOptions
- Overrides:
getOptionsin classBaseHeatmapLayer
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getGradient
- Specified by:
getGradientin interfaceBaseHeatmapLayer.HasGradient- Overrides:
getGradientin classBaseHeatmapLayer- 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- Overrides:
setGradientin classBaseHeatmapLayer- Parameters:
gradient- list of CSS color strings
-
getRadius
- Specified by:
getRadiusin interfaceBaseHeatmapLayer.HasRadius- Overrides:
getRadiusin classBaseHeatmapLayer- 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- Overrides:
setRadiusin classBaseHeatmapLayer- Parameters:
radius- radius size in pixels
-
getBlur
- Specified by:
getBlurin interfaceBaseHeatmapLayer.HasBlur- Overrides:
getBlurin classBaseHeatmapLayer- 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- Overrides:
setBlurin classBaseHeatmapLayer- Parameters:
blur- the blur size in pixels
-
withId
Description copied from class:LayerSeeLayer.setId(String).- Overrides:
withIdin classLayer<AbstractVectorSource>- Parameters:
id- id to set ornullto unset value- Returns:
- current instance
-
getWeightProperty
- Specified by:
getWeightPropertyin interfaceBaseHeatmapLayer.HasWeightProperty- Overrides:
getWeightPropertyin classBaseHeatmapLayer- 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- Overrides:
setWeightPropertyin classBaseHeatmapLayer- Parameters:
weightProperty- property in a feature or in an entity
-
getMaxWeight
- Specified by:
getMaxWeightin interfaceBaseHeatmapLayer.HasMaxWeight- Overrides:
getMaxWeightin classBaseHeatmapLayer- 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- Overrides:
setMaxWeightin classBaseHeatmapLayer- Parameters:
maxWeight- maximum weight
-
getSource
- Specified by:
getSourcein classLayer<AbstractVectorSource>- Type Parameters:
S- the source type- Returns:
- the layer source or
nullif not set
-
setSource
Sets source to the layer.For more details see: #setSource docs
Layer supports the following sources:
- Overrides:
setSourcein classLayer<AbstractVectorSource>- Parameters:
source- source to set
-
withSource
SeeLayer.setSource(Source).Layer supports the following sources:
- Overrides:
withSourcein classLayer<AbstractVectorSource>- Parameters:
source- source to set- Returns:
- current instance
-
withWeightProperty
- Parameters:
weightProperty- property in a feature or in an entity- Returns:
- current instance
-
withMaxWeight
SeesetMaxWeight(Double).- Parameters:
maxWeight- maximum weight- Returns:
- current instance
-
withGradient
SeesetGradient(List).- Parameters:
gradient- list of CSS color strings- Returns:
- current instance
-
withRadius
SeesetRadius(Double).- Parameters:
radius- radius size in pixels- Returns:
- current instance
-
withBlur
SeesetBlur(Double).- Parameters:
blur- the blur size in pixels- Returns:
- current instance
-
withClassName
Description copied from class:Layer- Overrides:
withClassNamein classLayer<AbstractVectorSource>- Parameters:
className- CSS class name- Returns:
- current instance
-
withOpacity
Description copied from class:Layer- Overrides:
withOpacityin classLayer<AbstractVectorSource>- Parameters:
opacity- opacity of the layer- Returns:
- current instance
-
withVisible
Description copied from class:Layer- Overrides:
withVisiblein classLayer<AbstractVectorSource>- Parameters:
visible- whether layer should be visible- Returns:
- current instance
-
withExtent
Description copied from class:Layer- Overrides:
withExtentin classLayer<AbstractVectorSource>- Parameters:
extent- extent at which the layer is visible- Returns:
- current instance
-
withZIndex
Description copied from class:Layer- Overrides:
withZIndexin classLayer<AbstractVectorSource>- Parameters:
zIndex- z-index for layer rendering- Returns:
- current instance
-
withMinZoom
Description copied from class:Layer- Overrides:
withMinZoomin classLayer<AbstractVectorSource>- Parameters:
minZoom- zoom level (exclusive) above which layer will be visible- Returns:
- current instance
-
withMaxZoom
Description copied from class:Layer- Overrides:
withMaxZoomin classLayer<AbstractVectorSource>- Parameters:
maxZoom- zoom level (inclusive) at which layer will be visible- Returns:
- current instance
-