AnsweredAssumed Answered

Buffer a circle

Question asked by oliviag12 on Dec 16, 2014
Latest reply on Dec 17, 2014 by ykchin

What's the simplest way to create a buffer round a circle. The current application creates a square buffer and I want it to reflect the circle shape. I've tried using getExtent but it just draws a square:

if (geometry.type === "polygon") {

var searchExtent = geometry.getExtent();

        var biggerExtent = new esri.geometry.Extent(searchExtent.getExtent().expand(1));

        wkid : 27700;

 

I also tried getCenter:

if (geometry.type === "polygon") {

var searchExtent = geometry.getExtent();

var centerPoint = newGeometry.getCenter();

var radius = newGeometry.getExtent().getWidth()/2;

var circleGeometry = new Circle(center, {"radius": radius});

        wkid : 27700;

 

which returns an error. Can anyone help please?

Outcomes