Class FeatureStyle
The style to display a Feature
Defined in: FeatureStyle.js.
Constructor Attributes | Constructor Name and Description |
---|---|
FeatureStyle(style)
|
Method Attributes | Method Name and Description |
---|---|
<static> |
FeatureStyle.fromColorToString(color)
Convert an internal color to a string based color representation
|
<static> |
FeatureStyle.fromStringToColor(color_string)
Convert a color from a string to RGB
|
isEqualForLine(style)
Check if a style is equals to render poly
|
|
isEqualForPoint(style)
Check if a style is equals to render point
|
|
isEqualForPoly(style)
Check if a style is equals to render poly
|
Class Detail
FeatureStyle(style)
- Parameters:
- style
- 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
Method Detail
<static>
FeatureStyle.fromColorToString(color)
Convert an internal color to a string based color representation
- Parameters:
- color
<static>
FeatureStyle.fromStringToColor(color_string)
Convert a color from a string to RGB
- Parameters:
- color_string
isEqualForLine(style)
Check if a style is equals to render poly
- Parameters:
- style
isEqualForPoint(style)
Check if a style is equals to render point
- Parameters:
- style
isEqualForPoly(style)
Check if a style is equals to render poly
- Parameters:
- style