在前端创建FeatureLayer并添加数据的方式,有什么优化浏览速度的方法?

在前端创建FeatureLayer并添加数据的方式 是指例如如下代码:
lyr = new FeatureLayer({
source: graphics, // autocast as an array of esri/Graphic
// create an instance of esri/layers/support/Field for each field object
fields: fields, // This is required when creating a layer from Graphics
objectIdField: "oid1", // This must be defined when creating a layer from Graphics
renderer: simpleRenderer, // set the visualization on the layer
spatialReference: {
wkid: 102100
},
geometryType: "point", // Must be set when creating a layer from Graphics
//popupTemplate: pTemplate
});

目前做了个试验,5000个点有点卡,8000就比较卡而且影响到使用了,请求性能优化方案,谢谢!!
已邀请:

要回复问题请先登录注册