Styling
This class coordinates the styling.
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) |
Member Summary
Public Members | ||
public |
|
|
public |
nullStyle_: * |
Private Members | ||
private |
allStyles_: Set<ol.style.Style> |
|
private |
|
|
private |
managingFeatureStyle_(feature: ol.Feature, resolution: number): *: * |
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
changeColorOpacity_(style: ol.style.Style, opacity: number): ol.style.Style adjust the styles opacity by a given value |
|
public |
getConditionalStyleFromConfig(configArr: *): * |
|
public |
getConfigById(id: string): StyleObject |
|
public |
|
|
public |
|
|
public |
|
|
public |
getStyleById(id: string): ol.style.Style |
|
public |
getStyleFromConfig(styleConf: StyleObject): ol.style.Style |
|
public |
manageFeature(feature: *) |
|
public |
manageFeatureCollection(collection: *) |
|
public |
manageLayer(layer: *) |
|
public |
manifestStyle(style: *, feature: *, resolution: *): * |
|
public |
processedStyle(style: *, feature: *, resolution: *): * |
|
public |
setGlobalIconScale(scale: number) |
Private Methods | ||
private |
adjustStyle_(feature: *, style: *): ol.style.Style This internal method is called to adjust each style to current global and feature settings |
|
private |
scaleStyle_(style: *) This method adjusts the scale of a style |
Public Constructors
Public Members
public manageStyles_: * source
public nullStyle_: * source
Private Members
private styleConfigMap_: Map<string, StyleObject> source
Public Methods
public changeColorOpacity_(style: ol.style.Style, opacity: number): ol.style.Style source
adjust the styles opacity by a given value
Params:
Name | Type | Attribute | Description |
style | ol.style.Style | ||
opacity | number | between 0 and 1 |
Return:
ol.style.Style |
public getConditionalStyleFromConfig(configArr: *): * source
Params:
Name | Type | Attribute | Description |
configArr | * |
Return:
* |
public getConfigById(id: string): StyleObject source
Params:
Name | Type | Attribute | Description |
id | string |
public getConfigFromStyle() source
public getStyle(data: StyleLike): ol.style.Style source
Params:
Name | Type | Attribute | Description |
data | StyleLike |
Return:
ol.style.Style |
public getStyleById(id: string): ol.style.Style source
Params:
Name | Type | Attribute | Description |
id | string |
Return:
ol.style.Style |
public getStyleFromConfig(styleConf: StyleObject): ol.style.Style source
Params:
Name | Type | Attribute | Description |
styleConf | StyleObject |
Return:
ol.style.Style |
public manageFeature(feature: *) source
Params:
Name | Type | Attribute | Description |
feature | * |
public manageFeatureCollection(collection: *) source
Params:
Name | Type | Attribute | Description |
collection | * |
public manageLayer(layer: *) source
Params:
Name | Type | Attribute | Description |
layer | * |
public manifestStyle(style: *, feature: *, resolution: *): * source
Params:
Name | Type | Attribute | Description |
style | * | ||
feature | * | ||
resolution | * |
Return:
* |
public processedStyle(style: *, feature: *, resolution: *): * source
Params:
Name | Type | Attribute | Description |
style | * | ||
feature | * | ||
resolution | * |
Return:
* |
Private Methods
private adjustStyle_(feature: *, style: *): ol.style.Style source
This internal method is called to adjust each style to current global and feature settings
Params:
Name | Type | Attribute | Description |
feature | * | ||
style | * |
Return:
ol.style.Style |
private scaleStyle_(style: *) source
This method adjusts the scale of a style
Params:
Name | Type | Attribute | Description |
style | * |