Namespace: Category

Category

Members


attributeName_ :String

TODO

Type:
  • String
Source:

categoryStyles_ :Map.<String, M.Style>

TODO

Type:
Source:

Methods


apply(layer)

This function apply the styleCategory object to specified layer

Parameters:
Name Type Description
layer M.layer.Vector

layer is the layer where we want to apply the new Style

Overrides:
Source:
Returns:
Type
M.style.Category

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 AttributeName

Source:
Returns:
Type
String

getCategories()

This function return an Array with the diferents Categories

Source:
Returns:
Type
Array.<String>

getStyleForCategory(string)

This function return the style of a specified Category defined by user

Parameters:
Name Type Description
string String

string is the name of a category value

Source:
Returns:
Type
M.style

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 AttributeName defined by user

Parameters:
Name Type Description
attributeName String

newAttributeName is the newAttributeName specified by the user

Source:
Returns:
Type
M.style.Category

setCategories(categories)

This function sets the object categories

Parameters:
Name Type Description
categories Map.<String, M.style>
Source:
Returns:
Type
M.style.styleCategory

setStyleForCategory(category, style)

This function set the style of a specified Category defined by user

Parameters:
Name Type Description
category String

category is the name of a category value

style M.style.Simple

style is the new style to switch

Source:
Returns:
Type
M.style.Category

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: