Class: ClusteredFeature

ClusteredFeature

Main constructor of the class. Create a clustered Feature


new ClusteredFeature(features, attributes)

Parameters:
Name Type Description
features Array.<M.Feature>

array of features

attributes Object

attributes

Source:

Extends

Methods


equals(feature)

This function return if two features are equals

Parameters:
Name Type Description
feature M.Feature
Overrides:
Source:
Returns:

returns the result of comparing two features

Type
bool

fire()

Sets the callback when the instace is loaded

Inherited From:
Source:

getAttribute(attribute)

This function returns the value of the indicated attribute

Parameters:
Name Type Description
attribute string

Name attribute

Inherited From:
Source:
Returns:

returns the value of the indicated attribute

Type
string | number | object

getAttributes()

This function return attributes feature

Inherited From:
Source:
Returns:

attributes feature

Type
Object

getCentroid()

This function returns de centroid of feature

Inherited From:
Source:
Returns:
Type
M.Feature

getGeoJSON()

This function return geojson feature

Inherited From:
Source:
Returns:

geojson feature

Type
Object

getGeometry()

This function return geometry feature

Inherited From:
Source:
Returns:

Geometry feature

Type
object

getId()

This function return id feature

Inherited From:
Source:
Returns:

ID to feature

Type
string

getImpl()

This function provides the implementation
of the object

Inherited From:
Source:
Returns:
Type
Object

getStyle()

This function returns style feature

Inherited From:
Source:
Returns:

returns the style feature

Type
M.style.Feature

on()

Sets the callback when the instace is loaded

Inherited From:
Source:

once()

Sets the callback when the instace is loaded

Inherited From:
Source:

setAttribute(attribute)

This function set value the value of the indicated attribute

Parameters:
Name Type Description
attribute string

Name attribute

Inherited From:
Source:
Returns:

returns the value of the indicated attribute

Type
string | number | object

setAttributes(attributes)

This function set attributes feature

Parameters:
Name Type Description
attributes Object

attributes to feature

Inherited From:
Source:

setGeometry(Geometry)

This function set geometry feature

Parameters:
Name Type Description
Geometry object

feature

Inherited From:
Source:

setId(id)

This function set id

Parameters:
Name Type Description
id string

ID to feature

Inherited From:
Source:

setImpl(impl)

This function set implementation of this control

Parameters:
Name Type Description
impl M.Map

to add the plugin

Inherited From:
Source:

setStyle(style)

This function set style feature

Parameters:
Name Type Description
style M.style.Feature
Inherited From:
Source:

un()

Sets the callback when the instace is loaded

Inherited From:
Source: