Class: IconLib

nyc/ol/style/IconLib~ IconLib


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
icon string

The icon in the following format 'library-name/icon-name#hexclr'

width number

The icon width

Source:
Returns:

The icon style

Type
ol.style.Style