FeatureLayer make the map not smooth when panning or zooming

1940
4
01-09-2013 10:48 PM
__9
by
New Contributor
HI all ,I create a point FeatureLayer which contains perhaps 450 Features,after that ,I load a basemap and this FeatureLayer in my browser. when i zoom or pan the map,the map can not move  smoothly,the user experience is very bad.
the samples http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/widget_gauge ,its FeatureLayer contains 406 Features,however it can be operated without any delay and very smoothly.

Please HELP!
Thanks,
zoro
0 Kudos
4 Replies
ShreyasVakil
Occasional Contributor II
450 is perhaps very small number for the map to handle and mess up the display. Can you add some code to see what might be going wrong?
0 Kudos
__9
by
New Contributor
450 is perhaps very small number for the map to handle and mess up the display. Can you add some code to see what might be going wrong?


hello svakil,I am learnnin arcgis for javascript api during this time in the ArcGIS resource center,and making some demo related with my job.A few days ago i did a demo about featureLayer ,the code was very simple :
 
//basemap
var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://172.18.37.177:8080/ArcGIS/rest/services/xxxxx/MapServer");

//FeatureLayer 450 fea
var featureLayer = new esri.layers.FeatureLayer('http://172.18.37.177:8080/ArcGIS/rest/services/xxxxx/MapServer/0', {
        mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
        "outFields": ["DXBH"]
      });

//load map
    map.addLayer(tiledMapServiceLayer);
    map.addLayer(featureLayer);


thanks~~
0 Kudos
__9
by
New Contributor
450 is perhaps very small number for the map to handle and mess up the display. Can you add some code to see what might be going wrong?

hi  svakil,the problem was solved,my IE 'version was 7,updating to the IE9 ,all are ok
thanks all the same
0 Kudos
JohnGravois
Frequent Contributor
setting "displayGraphicsOnPan" to false in the map constructor options can also improve drawing performance in older versions of Internet Explorer.
0 Kudos