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 Object | 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

Type Definitions


Icon

Icon definition object

Type:
  • Object
Properties:
Name Type Description
library string

The icon library

name string

The icon name

color string

The icon color

Source: