Select to view content in your preferred language

Which way is better to dispaly more 10000 points?

585
2
03-24-2011 01:20 PM
TomWang
Emerging Contributor
Hi,

I have a Web Silverlight App to display more than 10000 points with 10 attributes.

Option 1: To use FeatureLayer and change <MaxRecordCount/> from 500 to a bigger number than 10000 in MapService.cfg;

Option 2: To query FeatureLayer and add to a GraphicsLayer in a loop until all data be loaded, this way I would keep <MaxRecordCount/> 500 as its default value, like ESRI Morten Nielsen had a demo during Developer Summit.

My question is which would be have a better performance. Please let me know your idea.

Thanks,

Tom
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
You can use FeatureLayer with QueryMode set to OnDemand http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLay...
I think you might be referring to this sample: http://www.arcgis.com/home/item.html?id=9329a4d26e314828926c71549e8b6803
You can use either GraphicsLayer or FeatureLayer (as in the sample), the idea is to make minimum request to the server, to only request for fields of given feature when the feature is visited on hover.
0 Kudos
dotMorten_esri
Esri Notable Contributor
I would put it another way: Don't display 10000 features using GraphicsLayer/FeatureLayer. It's going to take forever to load the data, and it's going to hurt your rendering performance badly.
Please watch this session where I give some ideas to alternatives:
http://resources.arcgis.com/gallery/video/arcgis-api-for-silverlightwpf/details?entryID=E50439B8-142... (starting at 26:30)
0 Kudos