new IconLib( [url])
Create an instance of IconLib
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
url |
string |
<optional> |
The base URL for icon libraries |
- Source:
Methods
-
style(icon, width)
-
Create an icon style
Parameters:
Name Type Description iconstring The icon in the following format 'library-name/icon-name#hexclr'
widthnumber The icon width
- Source:
Returns:
The icon style
- Type
- ol.style.Style