Lib Fusion. Error |
Fusion. ErrorGeneral purpose Error object Summary
Fusion. Lib. EventMgran 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. Fusion. Lib. ApplicationDefinitionUtility class to parse an application definition Summary
parse
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). Fusion. Lib. ApplicationDefinition. WidgetSetHolds an internal representation of WidgetSet objects as defined in the AppDef Summary
addWidgetInstance
keep track of live widgets created in this widgetSet Parameter: {Fusion.Widget} widget the widget to add create
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 create
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. MGRequest. MGEnumerateResourceDataencapsulate 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. MGGetVisibleMapExtentencapsulate 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. Tool. ButtonBaseUtility base class for a button type widgets. Configurations for the buttons come from :
Clases inheriting should redefine the function activateTool which is called when the button is clicked Fusion. Tool. SearchThe 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.Mapgeneric class for map widgets. Provides common utility classes. Summary
Fusion. Maps. MapGuideImplements the map widget for MapGuide Open Source services. Summary
Fusion. Widget. BufferPanelThe 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. CursorPositionDisplays 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 < is > & is & So a two-line display would bex: {x}<br/>y: {y} Fusion. Widget. InvokeURLA 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. LayerManagerDisplays 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. LegendA widget to display a legend of all layers. Summary
Fusion. Widget. Legend. LegendRendererThis is a class designed to help users to create their own renderer for customize the legend. Summary
oLegend{Fusion.Widget.Legend} The parent widget that uses the renderer. getMap
Helper method to obtains the map. Returns{Fusion.Maps} The map that uses the SelectionPanel Widget. Fusion. Widget. Legend. LegendRendererDefaultThis class provide a default legend as a collapsable tree. Summary
Fusion. Widget. MaptipDisplays 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. ScalebarA dynamically generated cartographic scalebar uses JavaScript Scale Bar for MapServer (http://mapserver.commenspace.org/tools/scalebar/ Fusion. Widget. SearchA 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. SelectionInfoDisplays 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 < is > & is & Fusion. Widget. SelectionPanel. SelectionRendererThis is a class designed to help users to create their own renderer for customize display results. Summary
oSelectionPanel{Fusion.Widget.SelectionPanel} The parent widget that uses the renderer. Fusion. Widget. SelectionPanel. SelectionRendererConstructor for a new Fusion.Widget.SelectionPanel.SelectionRenderer instance. Parameters
getNextPage
Get the next batches of features. Wrapper of the getPage() method. This method calcul the startIndex/endIndex of the next batch. Parameters
Returns{Array(Array)} An array of all features with their properties. getPreviousPage
Get the previous batches of features. Wrapper of the getPage() method. This method calcul the startIndex/endIndex of the previous batch. Parameters
Returns{Array(Array)} An array of all features with their properties. getMap
Helper method to obtains the map. Returns{Fusion.Maps} The map that uses the SelectionPanel Widget. getPage
Get a batches of features in a selection. Parameters
Returns{Array(Array)} An array of all features with their properties. zoomBoxParameters
|
destroy: function()
start parsing the ApplicationDefinition file.
parse : function()
parse the ApplicationDefinition file into the appropriate Fusion objects
parseAppDef: function( json )
Create the application definition.
create: function()
return a map widget with the given name
getMapByName : function( name )
return a map widget with the given id
getMapById : function( id )
return the map widget at the given index
getMapByIndice : function( indice )
return the specified map group from the application definition
getMapGroup : function( mapGroupId )
keep track of live widgets created in this widgetSet
addWidgetInstance: function( widget )
return the map widget for this widget set
getMapWidget: function()
create all the things required by this widgetSet, including containers and widgets.
create: function( appDef )
return the map widget from this widget set if the map’s name matches the requested name, or null.
getMapByName : function( name )
creates a new instance of the widget, optionally using a different name during instantiation to accomodate containers
create: function( widgetSet, widgetName )
returns the location of this widget relative to the installation of fusion.
getLocation: function()
wheelChange: function( evt, deltaZ )
User spun scroll wheel up
wheelUp: function( evt )
User spun scroll wheel down
wheelDown: function( evt )
dispatch query requests to maps
query: function( options )
handle selection events from maps and republish for widgets as appropriate
selectionHandler: function()
returns true if any map has a selection
hasSelection: function()
clear the selection on all maps
clearSelection: function()
returns the current selection asynchronously in case we need to retrieve the details from the server
getSelection: function( callback, layers, startcount )
sets a Selection XML back to the server
setSelection: function( selText, zoomTo )
accumulate the selection results from each map and when all have reported in, pass the results to the callback function
accumulateSelection: function( map, oSelection )
sets the active layer for selection/manipulation
setActiveLayer: function( oLayer )
returns the active layer for selection/manipulation
getActiveLayer: function()
returns the current center of the map view
getCurrentCenter : function()
returns the Extent of the map given a center point and a scale (optional)
getExtentFromPoint: function( fX, fY, fScale )
Returns an OpenLayers MapGuide layer object
createOLLayer: function( layerName, bIsBaseLayer, bSingleTile )
Returns the MapGuide layer object as identified by the layer name
getLayerByName : function( name )
Returns true if the Map has been laoded succesfully form the server
isMapLoaded: function()
sets a Selection XML back to the server
zoomToSelection: function( extent )
Returns true if the Map has been laoded succesfully form the server
isMapLoaded: function()
opens a pop-up window with the about information when invoked
execute : function()
Abstract method that have the main purpose to draw the legend.
renderLegend: function()
Abstract method that handle the event: Fusion.Event.MAP_LOADING.
mapLoading: function()
Abstract method that handle the event: Fusion.Event.MAP_LOADED.
mapLoaded: function()
Abstract method that handle the event: Fusion.Event.MAP_RELOADED.
mapReloaded: function()
Helper method to obtains the map.
getMap: function()
Get the next batches of features.
getNextPage: function( selectionLayer )
Get the previous batches of features.
getPreviousPage: function( selectionLayer )
Helper method to obtains the map.
getMap: function()
Get a batches of features in a selection.
getPage: function( selectionLayer, startIndex, endIndex )
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_ON.
updateSelection: function()
Abstract method that handle the event: Fusion.Event.MAP_SELECTION_OFF.
clearSelection: function()