new FeatureStyle(style)
Parameters:
Name | Type | Description |
---|---|---|
style |
JSON | an object containing the following style properties
|
Methods
-
<static> fromStringToColor(color_string)
-
Convert a color from a string to RGB
Parameters:
Name Type Description color_string
String Color string Returns:
array with [r,g,b,alpha]- Type
- Array.<float>
-
<static> fromColorToString(color)
-
Convert an internal color to a string based color representation
Parameters:
Name Type Description color
Array.<float> array with [r,g,b] Returns:
Color string- Type
- String
-
getExtrusionScale()
-
Get extrusion scale
Returns:
Extrusion scale- Type
- float
-
setExtrusionScale(value)
-
Set extrusion scale
Parameters:
Name Type Description value
float Extrusion scale