Namespace: Cluster

Cluster

Members


<static, constant> DEFAULT :object

Default options for this style

Type:
  • object
Source:

<static, constant> DEFAULT_VENDOR :object

Default options for this style

Type:
  • object
Source:

<static, constant> RANGE_1_DEFAULT :object

Default options for range 1 style

Type:
  • object
Source:

<static, constant> RANGE_2_DEFAULT :object

Default options for range 2 style

Type:
  • object
Source:

<static, constant> RANGE_3_DEFAULT :object

Default options for range 3 style

Type:
  • object
Source:

Methods


apply(layer)

This function apply style to specified layer

Parameters:
Name Type Description
layer M.layer.Vector

Layer to apply the style

Overrides:
Source:

clone()

This function clones the style

Inherited From:
Source:
Returns:
Type
M.Style

equals()

TODO

Inherited From:
Source:

get(attribute)

This function returns the value of the indicated attribute

Parameters:
Name Type Description
attribute String

Attribute to know the value

Inherited From:
Source:
Returns:

Attribute Value

Type
Object

getOldStyle()

This function gets the old style of layer

Source:
Returns:

the old style of layer

Type
M.Style

getOptions()

This function returns the options of style cluster

Source:
Returns:

options of style cluster

Type
object

getRange(min, max)

This function return a specified range

Parameters:
Name Type Description
min number

as minimal value in the interval

max number

as max value in the interval

Source:
Returns:
Type
Object

getRanges()

This function return a set of ranges defined by user

Source:
Returns:

ranges stablished by user

Type
Array.<Object>

isAnimated()

This function return if layer is animated

Source:
Returns:

A flag indicating if layer is currently being animated

Type
boolean

refresh()

This function updates the style of the
layer

Overrides:
Source:
Returns:

data url to canvas

Type
String

serialize()

TODO

Inherited From:
Source:

set(property, value)

This function set value to property and apply new property

Parameters:
Name Type Description
property String

Property to change the value

value String

Value to property

Inherited From:
Source:
Returns:
Type
M.Style

setAnimated(animated)

This function set if layer must be animated

Parameters:
Name Type Description
animated boolean

defining if layer must be animated

Source:
Returns:
Type
M.style.Cluster

setRanges(newRanges)

This function update a set of ranges defined by user

Parameters:
Name Type Description
newRanges Array.<Object>

as new Ranges

Source:
Returns:
Type
M.style.Cluster

toImage()

This function returns data url to canvas

Inherited From:
Overrides:
Source:
Returns:

data url to canvas

Type
String

unapply(layer)

This function unapply the style to specified layer

Parameters:
Name Type Description
layer M.layer.Vector

layer to unapply his style

Overrides:
Source:

updateCanvas()

This function updates the styles's canvas

Inherited From:
Source:

updateRange(min, max, newRange)

This function set a specified range

Parameters:
Name Type Description
min number

as range minimal value to be overwritten

max number

as range max value to be overwritten

newRange number

as the new range

Source:
Returns:
Type
M.style.Cluster