Creates buffer polygons around a set of VEShapes. The result of this operation is a BufferResults object passed to the callback function.

Namespace:  ESRI.ArcGIS.VE
  (in ArcGISVE.exe)

Syntax

JScript
 function Buffer(
	parameters : BufferParameters,
	callback : Function
)

Parameters

parameters
Type: BufferParameters
BufferParameters that specify the geometries to buffer, buffer distance, etc.
callback
Type: Function
JavaScript function that will handle response. This function must take as its argument the BufferResults.

Remarks

This method would typically be used in connection with a QueryTask, where a selection needs to occur within some distance of a geometry. Since the QueryTask does not support a buffer tolerance around geometry, the geometry must first be buffered, and the resulting buffer used as the geometry for the QueryTask.

Sending geometries with large numbers of vertices can cause the request length limit for the browser to be exceeded. This can occur if you submit a very large polygon in a Buffer request. It can also occur if you use the results from the Buffer in a QueryTask. In these cases, you can use the proxy page to automatically handle large requests.

See Also