How can I create a buffer that is based on the shape of the geometry that has been drawn?
My map application creates a default square buffer extent and I want to create a buffer round a circle based on the shape not the min and max x y coordinates:
if (geometry.type === "polygon" || geometry.type === "multipoint" || geometry.type === "polyline") {
var searchExtent = geometry.getExtent();
var biggerExtent = new esri.geometry.Extent(searchExtent.xmin - 500, searchExtent.ymin - 500, searchExtent.xmax + 500, searchExtent.ymax + 500, new esri.SpatialReference({
wkid : 27700
}));
Can I give the esri.geometry.Extent a different searchExtent?