Members
(static, constant) HOVER :Array.<Style>
The default hover style.
Type:
- Array.<Style>
- Source:
- See:
(static, constant) MODIFY :Array.<Style>
The default modify style.
Type:
- Array.<Style>
- Source:
- See:
(static, constant) SELECT :Array.<Style>
The default select style.
Type:
- Array.<Style>
- Source:
- See:
Methods
(static) getIconStyle(options) → {Style}
Gets an icon style based on an image.
Parameters:
Name | Type | Description |
---|---|---|
options |
GetIconStyleOptions | The options |
- Source:
Returns:
The icon style
- Type
- Style
(static) getPointStyle(options)
Creates a new point style.
Parameters:
Name | Type | Description |
---|---|---|
options |
GetPointStyleOptions | The options |
- Source:
(static) getStyle(options) → {Array.<Style>}
Creates an array of new styles.
Parameters:
Name | Type | Description |
---|---|---|
options |
GetStyleOptions | The options |
- Source:
Returns:
An array containing styles
- Type
- Array.<Style>
Type Definitions
GetIconStyleOptions
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
src |
string | The image url or base64 encoded image |
anchorX |
number | The anchorX |
anchorY |
number | The anchorY |
opacity |
number | The opacity |
- Source:
GetPointStyleOptions
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
width |
number | Width |
radius |
number | Radius |
strokeColor |
ol.Color | Stroke color |
fillColor |
ol.Color | Fill color |
- Source:
GetStyleOptions
Type:
- GetPointStyleOptions
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
lineDash |
Array.<number> |
<optional> |
the lindash. |
- Source: