Fusion.Widget.ZoomToSelection

Zoom to the current selection, if any

Inherits from

Summary
Fusion.Widget.ZoomToSelectionZoom to the current selection, if any
Functions
activateget the selection from the map (which may not be loaded yet).
zoomToSelectionset the extents of the map based on the pixel coordinates passed

Functions

activate

activate: function()

get the selection from the map (which may not be loaded yet). zoomToSelection is called when the selection is ready.

Returns

return description

zoomToSelection

zoomToSelection: function(selection)

set the extents of the map based on the pixel coordinates passed

Parameters

selectionthe active selection, or null if there is none
activate: function()
get the selection from the map (which may not be loaded yet).
zoomToSelection: function(selection)
set the extents of the map based on the pixel coordinates passed
This is the base class for all widgets.
Close