AnsweredAssumed Answered

FeatureLayer Load is Slow

Question asked by geonetadmin on May 5, 2011
Latest reply on Jun 15, 2012 by geonetadmin
Original User: ereed

Hello,

I am adding polygon and line map tips to my application, using FeatureLayer. It works, but the two feature layers are taking a long time (30 seconds each) to load. The tiled and dynamic layer load fairly quick, but then everything freezes while the two feature layers load. Once loaded, everything works great.
Anybody have any idea how to spped this up?

<esri:FeatureLayer id="livemap2_A"
graphicAdd="graphicAddHandler(event)"
mode="onDemand" useAMF="false" useHandCursor="false"
outFields="[siteid,sitename,catid]"
url="http://xxx/ArcGIS/rest/services/xxx/MapServer/1">
  <esri:symbol>
   <esri:SimpleFillSymbol style="solid" alpha="0.0" />
  </esri:symbol>
</esri:FeatureLayer>

public function graphicAddHandler(event:GraphicEvent):void
{
var graphic:Graphic = event.graphic;
graphic.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
graphic.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
}
private function rollOverHandler(event:MouseEvent):void
{
const graphic:Graphic = event.target as Graphic;
myMap.infoWindow.styleName="InfoSymbolContainer1";
myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY)); 
}
  
private function rollOutHandler(event:MouseEvent):void
{
const graphic:Graphic = event.target as Graphic;
if (graphic)
{
     myMap.infoWindow.hide();
}
}

Attachments

Outcomes