Class HeatLayerOptions
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.plugins.heatmap.HeatLayerOptions
- All Implemented Interfaces:
Serializable
Possible heatmap options
- minOpacity - the minimum opacity the heat will start at
- maxZoom - zoom level where the points reach maximum intensity (as intensity scales with zoom), equals maxZoom of the map by default
- max - maximum point intensity, 1.0 by default
- radius - radius of each "point" of the heatmap, 25 by default
- blur - amount of blur, 15 by default
- gradient - color gradient config, e.g. {0.4: 'blue', 0.65: 'lime', 1: 'red'}
- Since:
- 2020-05-25
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds the default color gradient, mapping intensity ratios to colors (blue, cyan, lime, yellow and red).doublegetBlur()Returns the amount of blur applied to the heatmap.Returns the color gradient configuration mapping intensity ratios to colors.doublegetMax()Returns the maximum point intensity.intReturns the zoom level at which the points reach maximum intensity.doubleReturns the minimum opacity the heat will start at.doubleReturns the radius of each point of the heatmap.voidsetBlur(double blur) Sets the amount of blur applied to the heatmap.voidsetGradient(Map<Double, String> gradient) Sets the color gradient configuration mapping intensity ratios to colors, e.g.voidsetMax(double max) Sets the maximum point intensity.voidsetMaxZoom(int maxZoom) Sets the zoom level at which the points reach maximum intensity (as intensity scales with zoom).voidsetMinOpacity(double minOpacity) Sets the minimum opacity the heat will start at.voidsetRadius(double radius) Sets the radius of each point of the heatmap.toString()
-
Constructor Details
-
HeatLayerOptions
public HeatLayerOptions()
-
-
Method Details
-
getMinOpacity
public double getMinOpacity()Returns the minimum opacity the heat will start at.- Returns:
- the minimum opacity
-
defaultGradient
Builds the default color gradient, mapping intensity ratios to colors (blue, cyan, lime, yellow and red).- Returns:
- the default color gradient configuration
-
setMinOpacity
public void setMinOpacity(double minOpacity) Sets the minimum opacity the heat will start at.- Parameters:
minOpacity- the minimum opacity
-
getMaxZoom
public int getMaxZoom()Returns the zoom level at which the points reach maximum intensity.- Returns:
- the maximum zoom level
-
setMaxZoom
public void setMaxZoom(int maxZoom) Sets the zoom level at which the points reach maximum intensity (as intensity scales with zoom).- Parameters:
maxZoom- the maximum zoom level
-
getMax
public double getMax()Returns the maximum point intensity.- Returns:
- the maximum point intensity
-
setMax
public void setMax(double max) Sets the maximum point intensity.- Parameters:
max- the maximum point intensity
-
getRadius
public double getRadius()Returns the radius of each point of the heatmap.- Returns:
- the point radius
-
setRadius
public void setRadius(double radius) Sets the radius of each point of the heatmap.- Parameters:
radius- the point radius
-
getBlur
public double getBlur()Returns the amount of blur applied to the heatmap.- Returns:
- the blur amount
-
setBlur
public void setBlur(double blur) Sets the amount of blur applied to the heatmap.- Parameters:
blur- the blur amount
-
setGradient
Sets the color gradient configuration mapping intensity ratios to colors, e.g.{0.4: 'blue', 0.65: 'lime', 1: 'red'}.- Parameters:
gradient- the color gradient configuration
-
getGradient
Returns the color gradient configuration mapping intensity ratios to colors.- Returns:
- the color gradient configuration
-
toString
-