Remove glow filter from FeatureLayer

443
1
10-19-2011 08:42 AM
ReneRubalcava
Esri Frequent Contributor
I don't see this as an option in the API docs, so I was trying to extend FeatureLayer and override updateLayers() or something to try and remove the GlowFilter, but can't figure it out. I need to optimize selecting thousands of points and lines, and I think the added GlowFilter is adding my overhead. Clustering isn't an option for the data type being represented.

Any tips? I could go back to using a GraphicLayer, but I'd need to do a lot of rewrites to replicate the relationship queries I am doing.
Tags (2)
0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor
Ok, this seems to work in all situations I have tried it in to remove the glow filter.
private function removeGlow(fl:FeatureLayer):void
{
 var len:int = fl.numChildren;
 var dObj:DisplayObject;
 for ( var i:int = 0; i < len; i++ ) {
  dObj = fl.getChildAt(i);
  if (dObj.filters) {
   dObj.filters = [];
  }
 }
}


It has slightly helped with performance, so I'll squeeze as much as I can out of it.
0 Kudos