Zooms the map around a given center on the screen.
Namespace:
ESRI.ADF.UI
Syntax
function zoom ( scaleFactor : Number, center : Point, animate : Boolean ) : Object |
Parameters
- scaleFactor
- Type: [T:J#Number]
Amount to zoom in on the map. This value may be adjusted to fit a tiled layer.
- center
- Type: ESRI.ADF.Geometries..::.Point
Center point to zoom around in map coordinates. This point will stay fixed during zoom If null, the center of the current view is used.
- animate
- Type: [T:J#Boolean]
Specifies whether animation should be used for zooming. Default is true.
Return Value
True if a zoom was performed, false if not (no scale change). Returns undefined is the zoom was queued up.
Remarks
The scaleFactor might be adjusted to fit the closest pixel resolution if the map contains tiled resources.
If the adjusted scaleFactor is 1, the map will return false and you should call panTo instead.