Hello,
The following code I use to put a circle around a point on the map that is x miles away from the point. The result is a graphic that looks more like an oval than a circle. Why is that or am I doing something wrong?
public function highlightStoresArea(x:Number, y:Number, radius:Number):void
{
var myMapCenterPoint:Graphic = new Graphic();
myMapCenterPoint.geometry = new MapPoint(x, y, new SpatialReference(4326));
var bufferParameters:BufferParameters = new BufferParameters();
bufferParameters.features = [myMapCenterPoint];
bufferParameters.distances = [radius];
bufferParameters.unit = BufferParameters.UNIT_STATUTE_MILE;
bufferParameters.bufferSpatialReference = new SpatialReference(4326);
myGeometryService.buffer(bufferParameters);
}
private function bufferCompleteHandler(event:GeometryServiceEvent):void
{
myGraphicsLocationsLayer.add(event.graphics[0]);
}