Maps API for JavaScript Developer's Guide

H.clustering.DataPoint

Class Summary

Implements: H.geo.IPoint

This class represents the input data structure for data points to be clustered.

[ For full details, see the Class Details ]

Property Summary

Table 1. Properties
Properties

lat : {H.geo.Latitude}

This property holds the latitude of the data point.

lng : {H.geo.Longitude}

This property holds the longitude of the data point.

wt : {number}

This property holds the (clustering) weight of the data point.

data : {*}

This property holds the data associated with the given data point.

Class Description

This class represents the input data structure for data points to be clustered.

Constructor Details

H.clustering.DataPoint(lat, lng, opt_weight, opt_data)

Parameters:
 
lat:
{H.geo.Latitude}
 
The latitude coordinate of the position of the data point
lng:
{H.geo.Longitude}
 
The longitude coordinate of the position of the data point
opt_weight:
{number=} [optional]
 
The weight of the data point as a positive number, the default is 1
opt_data:
{*=} [optional]
 
Optional data, which will be associated with the given DataPoint

Property Details

lat: {H.geo.Latitude}

This property holds the latitude of the data point.

lng: {H.geo.Longitude}

This property holds the longitude of the data point.

wt: {number}

This property holds the (clustering) weight of the data point.

data: {*}

This property holds the data associated with the given data point.