Namespace: Proportional

Proportional

Members


<static, constant> SCALE_PROPORTION

This constant defines the scale proportion for iconstyle in styleproportional.

Source:

attributeName_ :String

TODO

Type:
  • String
Source:

layerFeatures_ :Array.<M.Feature>

Type:
Source:

Methods


apply(layer)

This function apply the style to specified layer

Parameters:
Name Type Description
layer M.Layer.Vector

Layer where to apply choropleth style

Overrides:
Source:

clone()

This function clones the style

Inherited From:
Source:
Returns:
Type
M.Style

drawGeometryToCanvas(vectorContext)

TODO

Parameters:
Name Type Description
vectorContext CanvasRenderingContext2D

context of style canvas

Source:

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

getAttributeName()

This function returns the attribute name defined by user

Source:
Returns:

attribute name of Style

Type
String

getMaxRadius()

This function get the maximum radius of the style point

Source:
Returns:

maximum radius of style point

Type
number

getMinRadius()

This function get the minimum radius of the style point

Source:
Returns:

minimum radius of style point

Type
number

getProportionalFunction()

This function get proportional function

Source:
Returns:

minimum radius of style point

Type
number

getStyle()

This function returns the style point defined by user

Source:
Returns:

style point of each feature

Type
M.style.Point

loadCanvasImage_(vectorContext)

TODO

Parameters:
Name Type Description
vectorContext CanvasRenderingContext2D

context of style canvas

Source:

refresh()

This function updates the style of the
layer

Inherited From:
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

setAttributeName(attributeName)

This function set the attribute name defined by user

Parameters:
Name Type Description
attributeName String

attribute name to set

Source:

setMaxRadius(minRadius)

This function set the maximum radius of the style point

Parameters:
Name Type Description
minRadius number

maximum radius of style point

Source:

setMinRadius(minRadius)

This function set the minimum radius of the style point

Parameters:
Name Type Description
minRadius number

minimum radius of style point

Source:

setProportionalFunction(proportionalFunction)

This function set proportional function

Parameters:
Name Type Description
proportionalFunction function

proportional function

Source:

setStyle(style)

This function set the style point defined by user

Parameters:
Name Type Description
style M.style.Point

style point to set

Source:

toImage()

This function returns data url to canvas

Inherited From:
Source:
Returns:

data url to canvas

Type
String

<protected> unapply(layer)

This function apply style

Parameters:
Name Type Description
layer M.layer.Vector

Layer to apply the styles

Inherited From:
Source:

updateCanvas()

This function updates the canvas of style

Overrides:
Source: