Select to view content in your preferred language

Overlay looks more like oval than circle

934
1
07-21-2011 12:39 PM
DaviKucharski
Deactivated User
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]);
  }
Tags (2)
0 Kudos
1 Reply
TomGiles
Deactivated User
Check your projection.
0 Kudos