Jagged polygons at large scales - how to smooth them out?

Discussion created by monzay on Jan 13, 2012
Latest reply on Mar 1, 2012 by DSwingley-esristaff
Are the concepts that are presented in the generalize and performance samples under feature layers going to solve the problem of jagged edges at large scales?

I have one featurelayer (150 mb featureclass) that displays 1-4 features at a time at most. At large scales I get really jagged edges. The source data, as viewed in ArcMap, is more detailed. I have included the maxAllowableOffset parameter as described in the generalize features sample. This does help with the speed of initially displaying some of the larger features based on what I am seeing in firebug. However, I'm struggling to make sense of the two samples and how I should implement the code in my own application.

It seems that the code in the generalize sample might be all I need:

    var maxOffset = function maxOffset(map, pixelTolerance) {
      return Math.floor(map.extent.getWidth() / map.width) * pixelTolerance;

but the performance sample uses a different calculation:

function calcOffset() {
        return ( /;
        // console.log('extent changed...maxOffset: ', globals.maxOffset);

I'm not sure what to do or whether it will fix this problem.