I am using a FeatureLayer for a points layer with close to 10,000 points around the world, and finding the performance is slow. Are there any advise or best practice to speed things up?
This points layer is served using ArcGIS for Server 10.4. The points come from a file geodatabase. I need to use FeatureLayer because we need to allow users to change symbology dynamically on the JavaScript web viewer and use popups. At the globe level, it takes a few seconds to draw the points form the FeatureLayer, where it is almost instant if I use ArcGISDynamicServiceLayer (which is expected). In addition, the quality of the points are visibly more blurry than the one from ArcGISDynamicServiceLayer.
I have tried snapshot and on-demand modes for the FeatureLayer but they do not improve speed.
Solved! Go to Solution.
Henry,
There is nothing in your list that can not be done with ArcGISDynamicServiceLayer w/dynamic layer support.
Henry,
You can use a ArcGISDynamicServiceLayer and still get popups and the allow users to change symbology dynamically (if you map service has dynamic layers enabled). ArcGISDynamicServiceLayer has a setLayerDrawingOptions that allows you to "Specify an array of LayerDrawingOptions that override the way the layers are drawn".
Class breaks renderer with dynamic layer | ArcGIS API for JavaScript 3.17
Thanks Robert.
I found the following link for performance enhancement with Feature Layers which is quite helpful, but hasn't really improved my case:
Feature Layer Best Practices | Guide | ArcGIS API for JavaScript 3.17
I will give dynamic layers a go. Before I spend time on it, would you or anyone else know any limitations with dynamic layers? My basic requirements are:
Thanks.
Henry,
There is nothing in your list that can not be done with ArcGISDynamicServiceLayer w/dynamic layer support.