Class: Item

ol.legend. Item

A class for legend items


new Item(options)

Parameters:
Name Type Description
options olLegendItemOptions
Fires:
  • event:select

Methods


getElement(size, onclick)

Get element

Parameters:
Name Type Description
size ol.size

symbol size

onclick function

setHeight( [heigth])

Set the item heigth

Parameters:
Name Type Argument Description
heigth number <optional>

setTitle(title)

Set the legend title

Parameters:
Name Type Description
title string

setWidth( [width])

Set the item width

Parameters:
Name Type Argument Description
width number <optional>