HERE Android SDK Developer's Guide

ClusterDensityRange

The class ClusterDensityRange is a member of com.here.android.mpa.cluster .

Class Summary

public class ClusterDensityRange

extends java.lang.Object

Represents a range of cluster densities that can be represented, such as '5 to 10 markers'.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in ClusterDensityRange
Constructors

ClusterDensityRange (int from, int to)

Creates a new density range.

Field Summary

Table 2. Fields in ClusterDensityRange
Fields

public static final int MINIMUM_CLUSTER_DENSITY

The lowest allowable density for any map cluster.

public final int from

The lower density limit for this range.

public final int to

The upper density limit for this range.

Method Summary

Table 3. Methods in ClusterDensityRange
Methods

public static boolean isValidDensityRange (int from, int to)

Checks if the provided values comprise a valid range.

public String toString ()

For documentation, see java.lang.Object

Class Details

Represents a range of cluster densities that can be represented, such as '5 to 10 markers'. Cluster density is the number of map markers that are inside a single cluster.

Cluster density ranges are inclusive of the upper and lower bounds.

Constructor Details

ClusterDensityRange (int from, int to)

Creates a new density range.

Parameters:

  • from

    Lower density range limit (inclusive), must be greater or equal to MINIMUM_CLUSTER_DENSITY.

  • to

    Upper density range limit (inclusive), must be smaller or equal lower limit

Throws:

  • IllegalArgumentException

    If lower limit smaller than MINIMUM_CLUSTER_DENSITY or if lower limit greater than upper limit

Field Details

public static final int MINIMUM_CLUSTER_DENSITY

The lowest allowable density for any map cluster. Clusters will only form if there are more than this amount of map markers.

public final int from

The lower density limit for this range.

public final int to

The upper density limit for this range.

Method Details

public static boolean isValidDensityRange (int from, int to)

Checks if the provided values comprise a valid range. A range is valid if ( from is smaller or equal to to ) and ( from greater or equal to MINIMUM_CLUSTER_DENSITY).

Parameters:

  • from

    lower density range limit

  • to

    upper density range limit

Returns:

true if the range is valid, false otherwise

public String toString ()

For documentation, see java.lang.Object

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.