Select to view content in your preferred language

featurelayer onDemand mode

920
0
10-18-2011 12:25 PM
abukhan
Occasional Contributor
HI:

In my featurelayer, when the mode is onDemand, is there anyway to limit the maximum number of features that can be shown on this layer. if feauturelayer.graphicprovider.length > 2000, do not show this layer but below this number show this layer...

..(Note it is tied up with defintionexpression query that can bring potentially 50000 features... but want to bring only maximum 2000 features).. is there way to get this maximum number on the client side without changing the mapservice config file maxlimit to 2000)

Also 
what benifit do i  get by using onDemandCacheSize="2000"?

Thanks...

Abu
Tags (2)
0 Kudos
0 Replies