new Style()
facade/js/style/Style.js, line 19
Methods
-
apply(layer)
facade/js/style/Style.js, line 74 -
This function apply style
Name Type Description layer
M.layer.Vector Layer to apply the styles
-
canvas(){HTMLCanvasElement}
facade/js/style/Style.js, line 62 -
canvas getter
-
clone(){M.Style}
facade/js/style/Style.js, line 272 -
This function clones the style
-
getOptions(){object}
facade/js/style/Style.js, line 208 -
This functions gets the options style.
-
refresh(){String}
facade/js/style/Style.js, line 184 -
This function updates the style of the layer
Returns:
data url to canvas
-
serialize(){String}
facade/js/style/Style.js, line 303 -
TODO
-
set(property, value){M.Style}
facade/js/style/Style.js, line 130 -
This function set value to property and apply new property
Name Type Description property
String Property to change the value
value
String Value to property
-
toJSON(){object}
facade/js/style/Style.js, line 289 -
This function implements the mechanism to generate the JSON of this instance
-
unapply(layer)
facade/js/style/Style.js, line 88 -
This function apply style
Name Type Description layer
M.layer.Vector Layer to apply the styles
-
updateCanvas()
facade/js/style/Style.js, line 252 -
This function updates the styles's canvas