- Source:
Members
-
<static, constant> ACCURACY_NUMBER_CANVAS
-
Accuracy of numbers on canvas
- Source:
-
<static, constant> END_COLOR_DEFAULT
-
Color style by default
- Source:
-
<static, constant> START_COLOR_DEFAULT
-
Color style by default
- Source:
-
attributeName_ :String
-
TODO
Type:
- String
- Source:
-
breakPoints_
-
- Source:
-
dataValues_ :Array.<Number>
-
Type:
- Array.<Number>
- Source:
-
quantification_ :M.quantification|function
-
Type:
- M.quantification | function
- Source:
-
styles_ :Array.<M.style.Simple>
-
Type:
- Source:
Methods
-
<static> CALC_CANVAS_NUMBER_()
-
Returns the calculation of the numbers of the canvas
with a given precision- Source:
-
<static> DEFAULT_STYLE_LINE(c)
-
This functions returns a line style by default
Parameters:
Name Type Description c
String color in hexadecimal format
- Source:
Returns:
- Type
- M.style.Line
-
<static> DEFAULT_STYLE_POINT(c)
-
This functions returns a point style by default
Parameters:
Name Type Description c
String color in hexadecimal format
- Source:
Returns:
- Type
- M.style.Point
-
<static> DEFAULT_STYLE_POLYGON(c)
-
This functions returns a polygon style by default
Parameters:
Name Type Description c
String color in hexadecimal format
- Source:
Returns:
- Type
- M.style.Polygon
-
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 return the attribute name defined by user
- Source:
Returns:
attribute name of Style
- Type
- String
-
getQuantification()
-
This function return quantification function defined by user
- Source:
Returns:
quantification function of style
- Type
- M.style.quantification | function
-
getStyles()
-
This function returns the styles defined by user
- Source:
Returns:
returns the styles defined by user
- Type
- Array(M.Style) | null
-
getValues()
-
This function gets the numeric features values of layer which attribute
is equal to attribute specified by user- Source:
Returns:
numeric features values of layer
- Type
- Array.<number>
-
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:
-
setQuantification(quantification)
-
This function set quantification function defined by user
Parameters:
Name Type Description quantification
M.style.quantification | function quantification function of style
- Source:
-
setStyles(styles)
-
This function sets the styles defined by user
Parameters:
Name Type Description styles
Array.<M.style.Point> | Array.<M.style.Line> | Array.<M.style.Polygon> styles defined by user
- 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()
-
TODO
- Overrides:
- Source: