Fusion. Error

General purpose Error object

Summary
General purpose Error object
an internal class for managing generic events.
Utility class to parse an application definition
array of map groups, parsed from ApplicationDefinition.
array of widget sets (each one corresponding to a map) parsed from the ApplicationDefinition.
A Broker object that can communicate with a MapGuide instance in the case we are running against a MapGuide server
An array of search definitions
An array of search categories
construct a new instance of the ApplicationDefinition object.
start parsing the ApplicationDefinition file.
parse the ApplicationDefinition file into the appropriate Fusion objects
Create the application definition.
return a map widget with the given name
return a map widget with the given id
return the map widget at the given index
return the specified map group from the application definition
Holds an internal representation of MapGroup objects as defined in the AppDef
Holds an internal representation of Map objects as defined in the AppDef
Holds an internal representation of WidgetSet objects as defined in the AppDef
keep track of live widgets created in this widgetSet
return the map widget for this widget set
create all the things required by this widgetSet, including containers and widgets.
return the map widget from this widget set if the map’s name matches the requested name, or null.
Holds an internal representation of Container objects as defined in the AppDef
Holds an internal representation of Widget objects as defined in the AppDef
creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers
Holds an internal representation of Menu Item objects as defined in the AppDef
Holds an internal representation of Flyout objects as defined in the AppDef
Holds an internal representation of SearchDefinition objects as defined in the AppDef
Holds an internal representation of SearchJoin objects as defined in the AppDef
Holds an internal representation of SearchRule objects as defined in the AppDef
Holds an internal representation of SearchCondition objects as defined in the AppDef
MGBroker is used to broker requests to the MapGuide Open Source mapagent interface.
MGRequest is the base class for all broker-compatible requests.
encapsulate a request to the server to enumerate resources in the library.
encapsulate a request to the server to get resource contents from the library.
encapsulate a request to the server to get resource header from the library.
encapsulate a request to the server to create a new session on the server.
encapsulate a request to the server to copy a resource.
encapsulate a request to the server to delete a resource.
encapsulate a request to the server to move a resource in the repository.
encapsulate a request to the server to set the content XML of a resource.
encapsulate a request to the server to describe the schema of a FeatureSource.
encapsulate a request to the server to retrieve the spatial context of a resource.
encapsulate a request to the server to enumerate the references to a resource id.
encapsulate a request to the server to enumerate the data associated with a FeatureSource N.B.
encapsulate a request to the server to enumerate the data associated with a FeatureSource N.B.
encapsulate a request to the server to query map features on selectable layers
encapsulate a request to the server to query map features on selectable layers
This is the base class for all widgets.
returns the location of this widget relative to the installation of fusion.
Utility base class for a button type widgets.
generic base class for implementing widgets that incorporate a menu
Utility base class for the actual buttons used by widgets.
Utility base class for drawing features on the map.
Utility base class for drawing point features on the map.
Utility base class for drawing circle features on the map.
Utility base class for drawing polygon features on the map.
Utility base class for drawing line features on the map.
Utility base class for drawing line segments on the map.
Utility base class to hold nodes that make up otherr features
Utility base class to encapsulate a context style.
Utility class to manage a click on the map (mouse up event).
Utility class to draw a rectangle on the map and return the coordinates through the doAction function.
The Fusion search mechanism defines a common capability for searches that link individual searches to a common search set maintained for all search-based widgets.
generic class for map widgets.
User spun scroll wheel up
User spun scroll wheel down
dispatch query requests to maps
handle selection events from maps and republish for widgets as appropriate
returns true if any map has a selection
clear the selection on all maps
returns the current selection asynchronously in case we need to retrieve the details from the server
sets a Selection XML back to the server
accumulate the selection results from each map and when all have reported in, pass the results to the callback function
sets the active layer for selection/manipulation
returns the active layer for selection/manipulation
returns the current center of the map view
returns the Extent of the map given a center point and a scale (optional)
generic class for map layers.
generic class for map layer groups.
Implements the map widget for MapGuide Open Source services.
Returns an OpenLayers MapGuide layer object
Returns the MapGuide layer object as identified by the layer name
Returns true if the Map has been laoded succesfully form the server
sets a Selection XML back to the server
Implements the map layer groups for MapGuide services
Implements individual map legend layers for MapGuide services
Implements a scale range object for MapGuide services
Implements the legend style items to get a legend icon from the server
Implementation of the map widget for MapServer CGI interface services
Returns true if the Map has been laoded succesfully form the server
Implements the map layer groups for MapServer CGI services
Implements individual map legend layers for MapServer services
Implements a scale range object for MapServer services
Implements the legend style items to get a legend icon from the server
About widget to display a pop-up window about the application.
opens a pop-up window with the about information when invoked
AcitivityIndicator is a widget that shows or hides its DOM element based on whether the map widget is busy or not.
The Buffer widget prompts the user for some inputs and then creates a buffer around the current selection based on those inputs.
Use BufferPanel instead.
The BufferPanel widget prompts the user for some inputs and then creates a buffer around the current selection based on those inputs.
Center the current selection, if any, but maintain the current scale if possible.
Clears the current selection, if any.
The user can pick from a palette of web-safe colours or enter a hex value.
Displays the geographic position of the cursor when it is over the map.
The user can manually type in a new scale
Maintain and navigate through a history of extents
Display a user help page.
Restore the map to it’s full extents determined when it was initially loaded.
Executes an arbitrary piece of JavaScript code
A widget that will open the configured URL in the target element.
Displays a LayerManager of all the layers in the map as a collapsable tree.
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.
A widget that displays a link to the currently displayedd map view.
A widget that displays a selection of maps that can be loaded into the application.
Displays tooltips over the map when the mouse is hovered for some time.
The Measure widget allows the user to measure distances or areas on the map in one or more segments.
A widget that immplements an in-map navigation control with zoom and pan.
A widget that displays an overview map showing the current view of the primary map.
A widget that allows for naviagtion by panning
Pans the map a fixed amount in a particular direction
A widget that combines pan and query functionality.
Print the current map.
Refreshes the current map view without changing zoom or center.
Save the current map image on the client’s computer
A dynamically generated cartographic scalebar
A dynamically generated cartographic scalebar that looks like the Google scalebar
A widget that displays a pre-configured search form to the user and then runs the search.
perform a selection on map features
perform a selection using a polygon
perform a selection by radius from a point
A widget to allow the user to specify the radius to use for a SelectRadius widget.
A widget to perform a selection within a currently selected set of features.
Displays the number of features and number of layers in the current selection.
A widget to display information about the currently selected set of features.
{String} The default image for Previous page button.
{String} The default image for Previous page button.
This is a class designed to help users to create their own renderer for customize display results.
{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.
{Array(int)} The index of the current position for pagination.
{int} The number of results per page for pagination.
Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
Helper method to update the aiCurrentIndex array for pagination.
Get the next batches of features.
Get the previous batches of features.
Helper method to obtains the map.
Get a batches of features in a selection.
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.
This class provide a default behavior for the selection panel.
This class provide a alternate behavior for the selection panel.
A utility widget that holds output from other widgets.
A widget to allow selection of the display units for various widgets
Display the size of the current view in user-definable units
A widget that will zoom the map in or out.
Zoom the map by a fixed amount when a button is clicked
Zoom to the current selection, if any

Fusion. Lib. EventMgr

an internal class for managing generic events.  Classes that wish to publish and trigger events that other objects can listen for need to inherit from Fusion.Lib.EventMgr.

To publish an event, call registerEventID with some unique numeric or string value.  Other objects can then call registerForEvent with the eventID and a function to call when the event is triggered.

To trigger an event, call triggerEvent with the eventID and any additional arguments that should be passed to listeners.

Functions

destroy

destroy: function()

Fusion. Lib. ApplicationDefinition

Utility class to parse an application definition

Summary
array of map groups, parsed from ApplicationDefinition.
array of widget sets (each one corresponding to a map) parsed from the ApplicationDefinition.
A Broker object that can communicate with a MapGuide instance in the case we are running against a MapGuide server
An array of search definitions
An array of search categories
construct a new instance of the ApplicationDefinition object.
start parsing the ApplicationDefinition file.
parse the ApplicationDefinition file into the appropriate Fusion objects
Create the application definition.
return a map widget with the given name
return a map widget with the given id
return the map widget at the given index
return the specified map group from the application definition

Properties

mapGroups

array of map groups, parsed from ApplicationDefinition.  A MapGroup consists of one or more Maps that can be combined into the same OpenLayers Map object

widgetSets

array of widget sets (each one corresponding to a map) parsed from the ApplicationDefinition.

{Object} oBroker

A Broker object that can communicate with a MapGuide instance in the case we are running against a MapGuide server

{Array} searchDefinitions

An array of search definitions

{Array} searchCategories

An array of search categories

Functions

ApplicationDefinition

construct a new instance of the ApplicationDefinition object.  While not enforced, this is intended to be a singleton.

Parameter: sessionId

an optional session id to initialize the application with, passed to the map widgets when they are created.

parse

parse : function()

start parsing the ApplicationDefinition file.  This happens asynchronously since the ApplicationDefinition has to be retrieved from the server or the MapGuide repository.  When parsing is complete, an APPLICATIONDEFINITION_PARSED event will be emitted.  This function returns true if parsing will start, false if it will not (due to a missing application definition for instance).

parseAppDef

parseAppDef: function(json)

parse the ApplicationDefinition file into the appropriate Fusion objects

Parameter: {XmlHttpRequest} xhr

the XmlHttpRequest object

create

create: function()

Create the application definition.  This actually triggers initializing every widget and container.

getMapByName

getMapByName : function(name)

return a map widget with the given name

Parameter: {String} name

The map name to return

Returns: {Object} a map object or null if not found.

getMapById

getMapById : function(id)

return a map widget with the given id

Parameter: {String} id

The map id to return.  ID is distinct from map.name in that id is the id of the HTML tag where the map widget is inserted.

Returns: {Object} a map object or null if not found.

getMapByIndice

getMapByIndice : function(indice)

return the map widget at the given index

Parameter: {String} indice

The map indice to return

Returns: {Object} a map object or null if not found.

getMapGroup

getMapGroup : function(mapGroupId)

return the specified map group from the application definition

Parameter: {String} mapgroup

The id of the MapGroup to return

Returns: {Object} a MapGroup appdef or null if not found.

Fusion. Lib. ApplicationDefinition. MapGroup

Holds an internal representation of MapGroup objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition.Map

Holds an internal representation of Map objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition. WidgetSet

Holds an internal representation of WidgetSet objects as defined in the AppDef

Summary
keep track of live widgets created in this widgetSet
return the map widget for this widget set
create all the things required by this widgetSet, including containers and widgets.
return the map widget from this widget set if the map’s name matches the requested name, or null.

Functions

addWidgetInstance

addWidgetInstance: function(widget)

keep track of live widgets created in this widgetSet

Parameter: {Fusion.Widget} widget

the widget to add

getMapWidget

getMapWidget: function()

return the map widget for this widget set

Returns: {<Fusion.Lib.Map>} a map widget or null

create

create: function(appDef)

create all the things required by this widgetSet, including containers and widgets.

Parameter: {Fusion.Lib.ApplicationDefinition}

the application definition that this widgetSet is part of

getMapByName

getMapByName : function(name)

return the map widget from this widget set if the map’s name matches the requested name, or null.

Parameter: {String} name

The map name to check

Returns: {Object} a map object or null.

Fusion. Lib. ApplicationDefinition. Container

Holds an internal representation of Container objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition. Widget

Holds an internal representation of Widget objects as defined in the AppDef

Summary
creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers

Functions

create

create: function(widgetSet,
widgetName)

creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers

Parameter: name

An optional name to use for the widget, overrides the original name temporarily if passed.

Returns: an instance of the widget represented by this object.

Fusion. Lib. ApplicationDefinition.Item

Holds an internal representation of Menu Item objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition. Flyout

Holds an internal representation of Flyout objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition. SearchDefinition

Holds an internal representation of SearchDefinition objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition. SearchJoin

Holds an internal representation of SearchJoin objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition. SearchRule

Holds an internal representation of SearchRule objects as defined in the AppDef

Fusion. Lib. ApplicationDefinition. SearchCondition

Holds an internal representation of SearchCondition objects as defined in the AppDef

Fusion. Lib. MGBroker

MGBroker is used to broker requests to the MapGuide Open Source mapagent interface.  It is a very simple class that is configured with a URL and credentials via the setSiteURL method and can send requests to the server via the dispatchRequest method.

Fusion. Lib. MGRequest

MGRequest is the base class for all broker-compatible requests.  A request is a wrapper around an operation that is supported by the mapagent.

Fusion. Lib. MGRequest. MGEnumerateResources

encapsulate a request to the server to enumerate resources in the library.

Fusion. Lib. MGRequest. MGGetResourceContent

encapsulate a request to the server to get resource contents from the library.

Fusion. Lib. MGRequest. MGGetResourceHeader

encapsulate a request to the server to get resource header from the library.

Fusion. Lib. MGRequest. MGCreateSession

encapsulate a request to the server to create a new session on the server.

Fusion. Lib. MGRequest. MGCopyResource

encapsulate a request to the server to copy a resource.

Fusion. Lib. MGRequest. MGDeleteResource

encapsulate a request to the server to delete a resource.

Fusion. Lib. MGRequest. MGMoveResource

encapsulate a request to the server to move a resource in the repository.

Fusion. Lib. MGRequest. MGMoveResource

encapsulate a request to the server to set the content XML of a resource.

Fusion. Lib. MGRequest. MGDescribeSchema

encapsulate a request to the server to describe the schema of a FeatureSource.

Fusion. Lib. MGRequest. MGGetSpatialContexts

encapsulate a request to the server to retrieve the spatial context of a resource.

Fusion. Lib. MGRequest. MGEnumerateResourceReferences

encapsulate a request to the server to enumerate the references to a resource id.

Fusion. Lib. MGRequest. MGEnumerateResourceData

encapsulate a request to the server to enumerate the data associated with a FeatureSource N.B.  This does not enumerate resource data for ‘unmanaged’ FeatureSources (those referencing files or directories outside the respository) Fusion.Lib.MGRequest.MGDescribeSchema should be used for those sources.

Fusion. Lib. MGRequest. MGGetVisibleMapExtent

encapsulate a request to the server to enumerate the data associated with a FeatureSource N.B.  This does not enumerate resource data for ‘unmanaged’ FeatureSources (those referencing files or directories outside the respository) Fusion.Lib.MGRequest.MGDescribeSchema should be used for those sources.

Fusion. Lib. MGRequest. MGQueryMapFeatures

encapsulate a request to the server to query map features on selectable layers

Fusion. Lib. MGRequest. MGGetFeatureSetEnvelope

encapsulate a request to the server to query map features on selectable layers

Fusion. Widget

This is the base class for all widgets.  It provides some basic functionality that all widgets should need.

Summary
returns the location of this widget relative to the installation of fusion.

Functions

getLocation

getLocation: function()

returns the location of this widget relative to the installation of fusion.  Can be used to construct URLs to resources that the widget needs.

Returns: {String} the location of this widget

Fusion. Tool. ButtonBase

Utility base class for a button type widgets.

Configurations for the buttons come from :

  • html area : corresponds to the web layout command name
  • width,height : default are 20,20.  Classes should redifine teh getButtonWidth and getButtonHeight to provide othe values
  • imageurl : image that will be used when the button is active.  Default value is read from the web layout command imageurl parameter.  Classes can redifine getImageURL.
  • imageurl : image that will be used when the button is active.  Default value is read from the web layout command disabledimageurl parameter.  Classes can redifine getDisabledImageURL.

Clases inheriting should redefine the function activateTool which is called when the button is clicked

Fusion. Tool. MenuBase

generic base class for implementing widgets that incorporate a menu

Fusion. Tool. Button

Utility base class for the actual buttons used by widgets.

Fusion. Tool. Canvas

Utility base class for drawing features on the map.

Fusion. Tool. Canvas. Point

Utility base class for drawing point features on the map.

Fusion. Tool. Canvas. Circle

Utility base class for drawing circle features on the map.

Fusion. Tool. Canvas. Polygon

Utility base class for drawing polygon features on the map.

Fusion. Tool. Canvas.line

Utility base class for drawing line features on the map.

Fusion. Tool. Canvas. Segment

Utility base class for drawing line segments on the map.

Fusion. Tool. Canvas.Node

Utility base class to hold nodes that make up otherr features

Fusion. Tool. Canvas. Style

Utility base class to encapsulate a context style.

Fusion. Tool. Click

Utility class to manage a click on the map (mouse up event).

All classes using this should redefine the execute function

Fusion. Tool. Rectangle

Utility class to draw a rectangle on the map and return the coordinates through the doAction function.  All classes should redifine the doAction function

Fusion. Tool. Search

The Fusion search mechanism defines a common capability for searches that link individual searches to a common search set maintained for all search-based widgets.  The common search set can be statically and/or dynamically created.  Static definition is done in the WebLayout.  Dynamic creation is done by individual widgets and creating instances of Fusion.Tool.SearchDefinition(s) - or rather a MGSearchDefinition.

Widgets that want to take advantage of this behaviour can sub-class this widget.  Just make sure to initialize properly!

Fusion. Widget.Map

generic class for map widgets.  Provides common utility classes.

Summary
User spun scroll wheel up
User spun scroll wheel down
dispatch query requests to maps
handle selection events from maps and republish for widgets as appropriate
returns true if any map has a selection
clear the selection on all maps
returns the current selection asynchronously in case we need to retrieve the details from the server
sets a Selection XML back to the server
accumulate the selection results from each map and when all have reported in, pass the results to the callback function
sets the active layer for selection/manipulation
returns the active layer for selection/manipulation
returns the current center of the map view
returns the Extent of the map given a center point and a scale (optional)

Functions

wheelChange

wheelChange: function(evt,
deltaZ)

Parameters

evt{Event}

wheelUp

wheelUp: function(evt)

User spun scroll wheel up

Parameters

evt{Event}

wheelDown

wheelDown: function(evt)

User spun scroll wheel down

Parameters

evt{Event}

query

query: function(options)

dispatch query requests to maps

selectionHandler

selectionHandler: function()

handle selection events from maps and republish for widgets as appropriate

hasSelection

hasSelection: function()

returns true if any map has a selection

clearSelection

clearSelection: function()

clear the selection on all maps

getSelection

getSelection: function(callback,
layers,
startcount)

returns the current selection asynchronously in case we need to retrieve the details from the server

setSelection

setSelection: function(selText,
zoomTo)

sets a Selection XML back to the server

accumulateSelection

accumulateSelection: function(map,
oSelection)

accumulate the selection results from each map and when all have reported in, pass the results to the callback function

setActiveLayer

setActiveLayer: function(oLayer)

sets the active layer for selection/manipulation

getActiveLayer

getActiveLayer: function()

returns the active layer for selection/manipulation

getCurrentCenter

getCurrentCenter : function()

returns the current center of the map view

Return: {Object} an object with the following attributes x - the x coordinate of the center y - the y coordinate of the center

getExtentFromPoint

getExtentFromPoint: function(fX,
fY,
fScale)

returns the Extent of the map given a center point and a scale (optional)

Return: {OpenLayers.Bounds} the bounds for the map centered on a point

Fusion. Widget. Map. Layer

generic class for map layers.  This class is primarily for legends.

Fusion. Widget. Map. Group

generic class for map layer groups.  This class is primarily for legends.

Fusion. Maps. MapGuide

Implements the map widget for MapGuide Open Source services.

Summary
Returns an OpenLayers MapGuide layer object
Returns the MapGuide layer object as identified by the layer name
Returns true if the Map has been laoded succesfully form the server
sets a Selection XML back to the server

Functions

createOLLayer

createOLLayer: function(layerName,
bIsBaseLayer,
bSingleTile)

Returns an OpenLayers MapGuide layer object

getLayerByName

getLayerByName : function(name)

Returns the MapGuide layer object as identified by the layer name

isMapLoaded

isMapLoaded: function()

Returns true if the Map has been laoded succesfully form the server

zoomToSelection

zoomToSelection: function(extent)

sets a Selection XML back to the server

Fusion. Maps. MapGuide. Group

Implements the map layer groups for MapGuide services

Fusion. Maps. MapGuide

Implements individual map legend layers for MapGuide services

Fusion. Maps. MapGuide

Implements a scale range object for MapGuide services

Fusion. Maps. MapGuide

Implements the legend style items to get a legend icon from the server

Fusion. Maps. MapServer

Implementation of the map widget for MapServer CGI interface services

Summary
Returns true if the Map has been laoded succesfully form the server

Functions

isMapLoaded

isMapLoaded: function()

Returns true if the Map has been laoded succesfully form the server

Fusion. Maps. MapServer. Group

Implements the map layer groups for MapServer CGI services

Fusion. Maps. MapServer. Layer

Implements individual map legend layers for MapServer services

Fusion. Maps. MapServer. ScaleRange

Implements a scale range object for MapServer services

Fusion. Maps. MapServer. StyleItem

Implements the legend style items to get a legend icon from the server

Fusion. Widget. About

About widget to display a pop-up window about the application.  The contents of the page are come from an HTML page set as the AboutUrl extension property.

Summary
opens a pop-up window with the about information when invoked

Functions

About

Parameters

widgetTagJSON node for this widget from the Application definition

execute

execute : function()

opens a pop-up window with the about information when invoked

Fusion. Widget. ActivityIndicator

AcitivityIndicator is a widget that shows or hides its DOM element based on whether the map widget is busy or not.  The map widget becomes busy when loading maps, reloading maps or redrawing layers.

Fusion. Widget. Buffer

The Buffer widget prompts the user for some inputs and then creates a buffer around the current selection based on those inputs.

This version of the widget is not currently being used.

Use BufferPanel instead.  The 2 widgets will be merged eventually.

Fusion. Widget. BufferPanel

The BufferPanel widget prompts the user for some inputs and then creates a buffer around the current selection based on those inputs.

If the Target property points to TaskPane widget, the task will be listed in the menu list of the TaskPane and loaded there.  Otherwise if the target is an existing IFrame in the page it will be loaded there, otherwise it will open a new window with that name.

Fusion. Widget. CenterSelection

Center the current selection, if any, but maintain the current scale if possible.  Zoom out if not.

Fusion. Widget. ClearSelection

Clears the current selection, if any.

Fusion. Widget. ColorPicker

The user can pick from a palette of web-safe colours or enter a hex value.  The colour selected will be entered into the configured input element.

Fusion. Widget. CursorPosition

Displays the geographic position of the cursor when it is over the map.

Precision (integer, optional)

The number of digits to round the output to.  The geographic location is calculated with arbitrary precision and is often not necessary.  A value of less than 0 means no rounding (the default if parameter is missing).

Template (string, optional)

The format of the output string.  Use {x} and {y} as placeholders for the x and y location.  The default template is:

x: {x}, y: {y}

You can embed HTML in the template, but you must escape any characters that result in illegal HTML.  This would include:

< is &lt;

is &gt;

& is &amp;

So a two-line display would be

x: {x}&lt;br/&gt;y: {y}

Fusion. Widget. EditableScale

The user can manually type in a new scale

Fusion. Widget. ExtentHistory

Maintain and navigate through a history of extents

Fusion. Widget.Help

Display a user help page.

Fusion. Widget. InitialMapView

Restore the map to it’s full extents determined when it was initially loaded.

Fusion. Widget. InvokeScript

Executes an arbitrary piece of JavaScript code

Fusion. Widget. InvokeURL

A widget that will open the configured URL in the target element.

If the Target property points to TaskPane widget, the task will be listed in the menu list of the TaskPane and loaded there.  Otherwise if the target is an existing HTML elementt in the page it will be loaded there, otherwise it will open a new window with that name.

Fusion. Widget. LayerManager

Displays a LayerManager of all the layers in the map as a collapsable tree.

ShowRootFolder (boolean, optional)

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.

RootFolderIcon: (string, optional)

The url to an image to use for the root folder.  This only has an affect if ShowRootFolder is set to show the root folder.

LayerThemeIcon: (string, optional)

The url to an image to use for layers that are currently themed.

DisabledLayerIcon: (string, optional)

The url to an image to use for layers that are out of scale.

Fusion. Widget. Legend

A widget to display a legend of all layers.

Summary
{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

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.

Fusion. Widget. LinkToView

A widget that displays a link to the currently displayedd map view.

Fusion. Widget. MapMenu

A widget that displays a selection of maps that can be loaded into the application.  The list of maps is configured in the ApplicationDefinition.

Fusion. Widget. Maptip

Displays tooltips over the map when the mouse is hovered for some time.  You must configure tooltips for each layer using Studio or Web Studio by editing the LayerDefinition Settings and specifying an expression for the tooltip.

Delay (optional)

This is the delay, in milliseconds, that the user must keep the mouse in the same position in order for the maptip to appear.  The default, if not specified, is 350 milliseconds.

Layer (optional, multiple)

This is the name of a layer from the MapDefinition to get the tooltip from.  If no Layer elements are specified, then all layers will be queried and the top-most one will be displayed.  Multiple Layer tags can be added, allowing tooltips to come from different layers.

Fusion. Widget. Measure

The Measure widget allows the user to measure distances or areas on the map in one or more segments.  Area is positive if measured clockwise.

Fusion. Widget. Navigator

A widget that immplements an in-map navigation control with zoom and pan.

Fusion. Widget. OverviewMap

A widget that displays an overview map showing the current view of the primary map.

Fusion. Widget.Pan

A widget that allows for naviagtion by panning

Fusion. Widget. PanOnClick

Pans the map a fixed amount in a particular direction

Fusion. Widget. PanQuery

A widget that combines pan and query functionality.  If the mouse is moved before being released, a pan is performedd, otherwise a query is executed.

Fusion. Widget. Print

Print the current map.

Fusion. Widget. RefreshMap

Refreshes the current map view without changing zoom or center.

Fusion. Widget. SaveMap

Save the current map image on the client’s computer

usage

DWF format support requires a structure like this in the application definition’s widget tag extension: <Extension> <Format></Format> <ResourceId></ResourceId> <Scale></Scale> </Extension>

Fusion. Widget. Scalebar

A dynamically generated cartographic scalebar

uses JavaScript Scale Bar for MapServer (http://mapserver.commenspace.org/tools/scalebar/

Fusion. Widget. ScalebarDual

A dynamically generated cartographic scalebar that looks like the Google scalebar

Fusion. Widget. Search

A widget that displays a pre-configured search form to the user and then runs the search.  Searches are done on the attributes of specifiedd layers.

uses JavaScript Scale Bar for MapServer (http://mapserver.commenspace.org/tools/scalebar/

Fusion. Widget. Select

perform a selection on map features

Fusion. Widget. SelectPolygon

perform a selection using a polygon

Fusion. Widget. SelectRadius

perform a selection by radius from a point

Fusion. Widget. SelectRadiusValue

A widget to allow the user to specify the radius to use for a SelectRadius widget.

Fusion. Widget. SelectWithin

A widget to perform a selection within a currently selected set of features.

Fusion. Widget. SelectionInfo

Displays the number of features and number of layers in the current selection.

Template (string, optional)

The format of the output string.  Use {layers} and {features} as placeholders for the number of layers and features in the current selection.

You can embed HTML in the template, but you must escape any characters that result in illegal HTML.  This would include:

< is &lt;

is &gt;

& is &amp;

Fusion. Widget. SelectionPanel

A widget to display information about the currently selected set of features.

Summary
{String} The default image for Previous page button.
{String} The default image for Previous page button.

Properties

previousIcon

{String} The default image for Previous page button.

nextIcon

{String} The default image for Previous page button.

Fusion. Widget. SelectionPanel. SelectionRenderer

This is a class designed to help users to create their own renderer for customize display results.

Summary
{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer.
{Array(int)} The index of the current position for pagination.
{int} The number of results per page for pagination.
Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
Helper method to update the aiCurrentIndex array for pagination.
Get the next batches of features.
Get the previous batches of features.
Helper method to obtains the map.
Get a batches of features in a selection.
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.

Properties

oSelectionPanel

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

aiCurrentIndex

{Array(int)} The index of the current position for pagination.

iResultsPerPage

{int} The number of results per page for pagination.

Functions

Fusion. Widget. SelectionPanel. SelectionRenderer

Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.

Parameters

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

updateSelectionObject

Helper method to update the aiCurrentIndex array for pagination.

getNextPage

getNextPage: function(selectionLayer)

Get the next batches of features.  Wrapper of the getPage() method.  This method calcul the startIndex/endIndex of the next batch.

Parameters

selectionLayer{<Fusion.SelectionObject.Layer>} The layer that contains the set of features.

Returns

{Array(Array)} An array of all features with their properties.

getPreviousPage

getPreviousPage: function(selectionLayer)

Get the previous batches of features.  Wrapper of the getPage() method.  This method calcul the startIndex/endIndex of the previous batch.

Parameters

selectionLayer{<Fusion.SelectionObject.Layer>} The layer that contains the set of features.

Returns

{Array(Array)} An array of all features with their properties.

getMap

getMap: function()

Helper method to obtains the map.

Returns

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

getPage

getPage: function(selectionLayer,
startIndex,
endIndex)

Get a batches of features in a selection.

Parameters

selectionLayer{<Fusion.SelectionObject.Layer>} The layer that contains the set of features.
startIndex{int} The index of the first element.
endIndex{int} The index of the last element.

Returns

{Array(Array)} An array of all features with their properties.

updateSelection

updateSelection: function()

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

clearSelection

clearSelection: function()

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

Fusion. Widget. SelectionPanel. SelectionRendererDefault

This class provide a default behavior for the selection panel.

Fusion. Widget. SelectionPanel. SelectionRendererHorizontal

This class provide a alternate behavior for the selection panel.  Generate a table which have one feature per row.

Fusion. Widget. TaskPane

A utility widget that holds output from other widgets.

Fusion. Widget. ViewOptions

A widget to allow selection of the display units for various widgets

Fusion. Widget. ViewSize

Display the size of the current view in user-definable units

Fusion. Widget.Zoom

A widget that will zoom the map in or out.

Functions

zoomBox

Parameters

position{OpenLayers.Bounds} or {OpenLayers.Pixel}

Fusion. Widget. ZoomOnClick

Zoom the map by a fixed amount when a button is clicked

Fusion. Widget. ZoomToSelection

Zoom to the current selection, if any

destroy: function()
parse : function()
start parsing the ApplicationDefinition file.
parseAppDef: function(json)
parse the ApplicationDefinition file into the appropriate Fusion objects
create: function()
Create the application definition.
getMapByName : function(name)
return a map widget with the given name
getMapById : function(id)
return a map widget with the given id
getMapByIndice : function(indice)
return the map widget at the given index
getMapGroup : function(mapGroupId)
return the specified map group from the application definition
addWidgetInstance: function(widget)
keep track of live widgets created in this widgetSet
getMapWidget: function()
return the map widget for this widget set
create: function(appDef)
create all the things required by this widgetSet, including containers and widgets.
getMapByName : function(name)
return the map widget from this widget set if the map’s name matches the requested name, or null.
create: function(widgetSet,
widgetName)
creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers
getLocation: function()
returns the location of this widget relative to the installation of fusion.
wheelChange: function(evt,
deltaZ)
wheelUp: function(evt)
User spun scroll wheel up
wheelDown: function(evt)
User spun scroll wheel down
query: function(options)
dispatch query requests to maps
selectionHandler: function()
handle selection events from maps and republish for widgets as appropriate
hasSelection: function()
returns true if any map has a selection
clearSelection: function()
clear the selection on all maps
getSelection: function(callback,
layers,
startcount)
returns the current selection asynchronously in case we need to retrieve the details from the server
setSelection: function(selText,
zoomTo)
sets a Selection XML back to the server
accumulateSelection: function(map,
oSelection)
accumulate the selection results from each map and when all have reported in, pass the results to the callback function
setActiveLayer: function(oLayer)
sets the active layer for selection/manipulation
getActiveLayer: function()
returns the active layer for selection/manipulation
getCurrentCenter : function()
returns the current center of the map view
getExtentFromPoint: function(fX,
fY,
fScale)
returns the Extent of the map given a center point and a scale (optional)
createOLLayer: function(layerName,
bIsBaseLayer,
bSingleTile)
Returns an OpenLayers MapGuide layer object
getLayerByName : function(name)
Returns the MapGuide layer object as identified by the layer name
isMapLoaded: function()
Returns true if the Map has been laoded succesfully form the server
zoomToSelection: function(extent)
sets a Selection XML back to the server
isMapLoaded: function()
Returns true if the Map has been laoded succesfully form the server
execute : function()
opens a pop-up window with the about information when invoked
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 widget to display information about the currently selected set of features.
Constructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance.
getNextPage: function(selectionLayer)
Get the next batches of features.
getPreviousPage: function(selectionLayer)
Get the previous batches of features.
getMap: function()
Helper method to obtains the map.
getPage: function(selectionLayer,
startIndex,
endIndex)
Get a batches of features in a selection.
updateSelection: function()
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
clearSelection: function()
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.
This is the base class for all widgets.
Utility class to parse an application definition
A set of classes that implement mapping functionality for various server technologies.
Instances of this class represent bounding boxes.
This class represents a screen coordinate, in x and y coordinates