How to use Buffer method in AspMap 4.8

4/18/2013 4:15:24 AM
Total Posts 1

How to use Buffer method in AspMap 4.8

I want to infomation about Buffer method in AspMap 4.8  or sample code. which I want to create buffer of point.

thank you

4/18/2013 9:33:51 AM
MVP
Total Posts 323

Re: How to use Buffer method in AspMap 4.8

        Polygon GetPointBuffer(double x, double y, double distanceInMapUnits)
        {
            Points points = new Points();
            points.Add(x, y);
            Shape shape = new Shape(ShapeType.Point);
            shape.Add(points);
            return shape.Buffer(distanceInMapUnits);
        }