-
- All Implemented Interfaces:
-
com.google.maps.android.quadtree.PointQuadTree.Item
public class WeightedLatLng implements PointQuadTree.Item
A wrapper class that can be used in a PointQuadTree Created from a LatLng and optional intensity: point coordinates of the LatLng and the intensity value can be accessed from it later.
-
-
Field Summary
Fields Modifier and Type Field Description public final static doubleDEFAULT_INTENSITY
-
Constructor Summary
Constructors Constructor Description WeightedLatLng(LatLng latLng, double intensity)Constructor WeightedLatLng(LatLng latLng)Constructor that uses default value for intensity
-
Method Summary
Modifier and Type Method Description PointgetPoint()doublegetIntensity()-
-
Constructor Detail
-
WeightedLatLng
WeightedLatLng(LatLng latLng, double intensity)
Constructor- Parameters:
latLng- LatLng to add to wrapperintensity- Intensity to use: should be greater than 0Default value is 1.This represents the "importance" or "value" of this particular pointHigher intensity values map to higher colours.Intensity is additive: having two points of intensity 1 at the samelocation is identical to having one of intensity 2.
-
WeightedLatLng
WeightedLatLng(LatLng latLng)
Constructor that uses default value for intensity- Parameters:
latLng- LatLng to add to wrapper
-
-
Method Detail
-
getIntensity
double getIntensity()
-
-
-
-