Select to view content in your preferred language

FeatureService draws really slow and incomplete.

3300
3
11-19-2010 11:46 PM
SanajyJadhav
Deactivated User
Hi,

I have published the FeatureService using USA_Counties data.It contains only one layer;counties.

Now the problem is when the application loads, this services gets drawn really slow. And it is not drawn completely.Only portion of it is drawn.When I zoom to any undrawn portion, then that potion is drawn but again very slowly.

I tried alter the value of property 'OnDemandCacheSize', but no use.

Am I missing something simple? Any help is appreciated.

Thanks.
Sanjay.
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
You may have reached the limits of the service.
There is a limit on how many features a service can return at once (by default it's 500 for ArcGIS Server 9.3.1 and 1000 for ArcGIS Server 10).
You can change this limit, but take care that, as you mentionned, you can run into a performance issue if a huge number of graphics have to be rendered at the client level.

'OnDemandCacheSize' is used to free the graphic objects which are out of the current extent. It's not used to limit the number of objects inside the current extent.
0 Kudos
SanajyJadhav
Deactivated User
Thanks for information Dominique.I really appreciate it.

-
Sanjay.
0 Kudos
dotMorten_esri
Esri Notable Contributor
I suggest setting the layer mode to "OnDemand" and set a maximum resolution so you only see the counties when you zoom in to roughly state-level. That way all features should display and you will get reasonable rendering performance. Rendering all US counties at the same time on the client will bog down the UI thread. If you need to see the counties at country level, use a dynamic map service and set the minimum resolution of that layer to the same as the maximum resolution of the feature layer. That way the layer will automatically switch over to client side rendered features when you zoom in a bit and you will be able to "interact" with them (ie maptips etc).
0 Kudos