# Fusion.Widget.ZoomToSelection

Zoom to the current selection, if any

#### Inherits from

- Fusion.Widget

Summary

Fusion.Widget.ZoomToSelection | Zoom to the current selection, if any
Functions |
activate | get the selection from the map (which may not be loaded yet).
zoomToSelection | set 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

selection | the 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