Package 

Class WeightedLatLng

  • 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 double DEFAULT_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
      Point getPoint()
      double getIntensity()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WeightedLatLng

        WeightedLatLng(LatLng latLng, double intensity)
        Constructor
        Parameters:
        latLng - LatLng to add to wrapper
        intensity - 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