public class WeightedLatLng extends java.lang.Object implements PointQuadTree.Item
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_INTENSITY
Default intensity to use when intensity not specified
|
Constructor and Description |
---|
WeightedLatLng(LatLng latLng)
Constructor that uses default value for intensity
|
WeightedLatLng(LatLng latLng,
double intensity)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getIntensity() |
Point |
getPoint() |
public static final double DEFAULT_INTENSITY
public WeightedLatLng(LatLng latLng, double intensity)
latLng
- LatLng to add to wrapperintensity
- Intensity to use: should be greater than 0
Default value is 1.
This represents the "importance" or "value" of this particular point
Higher intensity values map to higher colours.
Intensity is additive: having two points of intensity 1 at the same
location is identical to having one of intensity 2.public WeightedLatLng(LatLng latLng)
latLng
- LatLng to add to wrapperpublic Point getPoint()
getPoint
in interface PointQuadTree.Item
public double getIntensity()