How many graphics can you add to a graphics layer before it starts to complain?

598
2
03-07-2011 10:00 AM
TyroneLigon
Occasional Contributor
Using Flex API v. 1.3 and ArcGIS Server 9.3...we have a situation where we may add somewhere between 55,000 and 90,000 graphics to a graphics layer. It isn't working very well - sometimes it dies a horrible death.

The symbol for each graphic is a picture symbol using a .png file with a size of about 500 bytes; there are also several attributes added to each graphic.

Is there any way to optimize the performance, or is it too many graphics for the API to handle?
Tags (2)
0 Kudos
2 Replies
BrendanCollins
New Contributor II
Thats way too many graphics to render on the map (not to mention to download to the client).

I would recommend using a dynamic map layer, or tiles when zoomed out..  When zoomed far into the map, where is extent of the viewport is smaller, you may be able to get away with using a GraphicsLayer/FeatureLayer.
0 Kudos
TyroneLigon
Occasional Contributor
Upgraded to Flex API v. 2.5; we loaded over 46,000 points into a graphics layer with a clusterer.  Took almost 50 seconds to load the points, but once loaded the map navigation hardly skipped a beat and the browser didn't crash.  In addition, the point markers are now .swf files, which are 2 to 3 times larger in disk size than the .png files.
0 Kudos