Fusion. Widget.Map

generic class for map widgets.  Provides common utility classes.

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

mapLoadHandler

mapLoadHandler: function()

handle selection events from maps and republish for widgets as appropriate

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

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
mapLoadHandler: function()
handle selection events from maps and republish for widgets as appropriate
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)