Show:

ia.LayerList Class

Defined in: ia\ui\LayerList.js:1
Module: ia

A class for rendering a layer list.

Constructor

ia.LayerList

(
  • The
)

Parameters:

  • The String

    id of the list.

Methods

_buildLayerItem

(
  • canvas
  • isBaseLayer
)
private

Draws the layer symbol.

Parameters:

  • canvas HTML Canvas

    The canvas to draw to.

  • isBaseLayer Boolean

    Is it a base layer.

_drawSymbol

(
  • canvas
  • layer
)
private

Draws the layer symbol.

Parameters:

  • canvas HTML Canvas

    The canvas to draw to.

  • layer ia.LayerBase

    The layer.

_layerEventHandler

(
  • event
)
private

Updates the checkbox when a layers visibility has changed.

Parameters:

  • event ia.Event

    A ia.Event dispatched by a layer.

_size

() private

Sizes all the element to make the scrolling work.

addEventListener

(
  • eventType
  • fnc
  • obj
)

Add an event listener.

Parameters:

  • eventType String

    The type of event to listen for.

  • fnc Function

    The function to call when the event occurs.

  • obj Object

    An optional parent object.

clickFunction

(
  • e
)

Supplies the click function for when the legend editor button is pressed

Parameters:

  • e Event

    The event.

dispatchEvent

(
  • event
)

Dispatch an event to the listeners.

Parameters:

  • event Object

    The event object.

hideLayer

(
  • id
)

Hides a layer.

Parameters:

  • id String

    The layer id.

removeListener

(
  • obj
)

Removes all event listeners for the given object.

Parameters:

  • obj Object

    The object.

render

()

Renders the layer list.

showLayer

(
  • id
)

Shows a layer.

Parameters:

  • id String

    The layer id.

Properties

container

JQUERY Element

The container that holds the object.

discreteLegend

ia.DiscreteLegend

The discrete legend.

gradientLegend

ia.GradientLegend

The gradient legend.

id

String

The id.

mapData

ia.MapData

The map data object.