Class: FeatureStyle

FeatureStyle

The style to display a Feature

new FeatureStyle(style)

Parameters:
Name Type Description
style JSON an object containing the following style properties
  • strokeColor : the color for line, or polygon outline
  • strokeWidth : the width of a line
  • fillColor : the color for solid polygon or point
  • fillTextureUrl : the texture for solid polygon
  • iconUrl : the icon to be used for point
  • pointMaxSize : maximum size (in meter) for a point
  • extrusionScale : extrusion scale (in meter)

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