Fusion. Widget. Legend

A widget to display a legend of all layers.

Summary
A widget to display a legend of all layers.
{String} The default image for DWF layer
{String} The default image for Raster layer
{String} The default image for layers that are currently themed.
{String} The default image for layers that are out of scale.
{String} The default image for the root folder
{String} The default image for layer info
{String} The default image for groupd info
This is a class designed to help users to create their own renderer for customize the legend.
{Fusion.Widget.Legend} The parent widget that uses the renderer.
{Groups} The groups of all layers.
Abstract method that have the main purpose to draw the legend.
Abstract method that handle the event: Fusion.Event.MAP_LOADING.
Abstract method that handle the event: Fusion.Event.MAP_LOADED.
Abstract method that handle the event: Fusion.Event.MAP_RELOADED.
Helper method to obtains the map.
This class provide a default legend as a collapsable tree.
{Boolean} This controls whether the tree will have a single root node that contains the name of the map as its label.
{Jx.TreeNode} The current selected node.
{Boolean} Determine if the map is drawn.
{Jx.TreeFolder} The current TreeFolder that the mouse will interact with.
{Boolean} Determine if non-visible layer must be draw in the legend.

Constants

defaultLayerDWFIcon

{String} The default image for DWF layer

defaultLayerRasterIcon

{String} The default image for Raster layer

defaultLayerThemeIcon

{String} The default image for layers that are currently themed.

defaultDisabledLayerIcon

{String} The default image for layers that are out of scale.

defaultRootFolderIcon

{String} The default image for the root folder

defaultLayerInfoIcon

{String} The default image for layer info

defaultGroupInfoIcon

{String} The default image for groupd info

Fusion. Widget. Legend. LegendRenderer

This is a class designed to help users to create their own renderer for customize the legend.

Summary
{Fusion.Widget.Legend} The parent widget that uses the renderer.
{Groups} The groups of all layers.
Abstract method that have the main purpose to draw the legend.
Abstract method that handle the event: Fusion.Event.MAP_LOADING.
Abstract method that handle the event: Fusion.Event.MAP_LOADED.
Abstract method that handle the event: Fusion.Event.MAP_RELOADED.
Helper method to obtains the map.

Properties

oLegend

{Fusion.Widget.Legend} The parent widget that uses the renderer.

layerRoot

{Groups} The groups of all layers.

Functions

renderLegend

renderLegend: function()

Abstract method that have the main purpose to draw the legend.  This method should be implemented by all concrete class.

mapLoading

mapLoading: function()

Abstract method that handle the event: Fusion.Event.MAP_LOADING.  This method is optional.

mapLoaded

mapLoaded: function()

Abstract method that handle the event: Fusion.Event.MAP_LOADED.  This method occur only at the first load of the map and should be implemented by all concrete class.

mapReloaded

mapReloaded: function()

Abstract method that handle the event: Fusion.Event.MAP_RELOADED.  This method should be implemented by all concrete class.

getMap

getMap: function()

Helper method to obtains the map.

Returns

{Fusion.Maps} The map that uses the SelectionPanel Widget.

Fusion. Widget. Legend. LegendRendererDefault

This class provide a default legend as a collapsable tree.

Summary
{Boolean} This controls whether the tree will have a single root node that contains the name of the map as its label.
{Jx.TreeNode} The current selected node.
{Boolean} Determine if the map is drawn.
{Jx.TreeFolder} The current TreeFolder that the mouse will interact with.
{Boolean} Determine if non-visible layer must be draw in the legend.

Properties

showRootFolder

{Boolean} This controls whether the tree will have a single root node that contains the name of the map as its label.  By default, the root node does not appear.  Set to “true” or “1” to make the root node appear.

currentNode

{Jx.TreeNode} The current selected node.

bIsDrawn

{Boolean} Determine if the map is drawn.

targetFolder

{Jx.TreeFolder} The current TreeFolder that the mouse will interact with.

bIncludeVisToggle

{Boolean} Determine if non-visible layer must be draw in the legend.

A widget to display a legend of all layers.
renderLegend: function()
Abstract method that have the main purpose to draw the legend.
mapLoading: function()
Abstract method that handle the event: Fusion.Event.MAP_LOADING.
mapLoaded: function()
Abstract method that handle the event: Fusion.Event.MAP_LOADED.
mapReloaded: function()
Abstract method that handle the event: Fusion.Event.MAP_RELOADED.
getMap: function()
Helper method to obtains the map.
A set of classes that implement layer functionality for various server technologies.