ia.LayerList Class
A class for rendering a layer list.
Constructor
ia.LayerList
(
-
The
Parameters:
-
The
Stringid of the list.
Item Index
Methods
Properties
Methods
_buildLayerItem
(
private
-
canvas
-
isBaseLayer
Draws the layer symbol.
Parameters:
-
canvas
HTML CanvasThe canvas to draw to.
-
isBaseLayer
BooleanIs it a base layer.
_drawSymbol
(
private
-
canvas
-
layer
Draws the layer symbol.
Parameters:
-
canvas
HTML CanvasThe canvas to draw to.
-
layer
ia.LayerBaseThe layer.
_layerEventHandler
(
private
-
event
Updates the checkbox when a layers visibility has changed.
Parameters:
-
event
ia.EventA
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
StringThe type of event to listen for.
-
fnc
FunctionThe function to call when the event occurs.
-
obj
ObjectAn optional parent object.
clickFunction
(
-
e
Supplies the click function for when the legend editor button is pressed
Parameters:
-
e
EventThe event.
dispatchEvent
(
-
event
Dispatch an event to the listeners.
Parameters:
-
event
ObjectThe event object.
hideLayer
(
-
id
Hides a layer.
Parameters:
-
id
StringThe layer id.
removeListener
(
-
obj
Removes all event listeners for the given object.
Parameters:
-
obj
ObjectThe object.
render
()
Renders the layer list.
showLayer
(
-
id
Shows a layer.
Parameters:
-
id
StringThe layer id.
Properties
container
JQUERY Element
The container that holds the object.
id
String
The id.