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 iconObject | string The icon in the following format 'library-name/icon-name#hexclr'
widthnumber The icon width
- Source:
Returns:
The icon style
- Type
- ol.style.Style
Type Definitions
-
Icon
-
Icon definition object
Type:
- Object
- Source:
Properties:
Name Type Description librarystring The icon library
namestring The icon name
colorstring The icon color