首页 / 浏览问题 / 组件GIS / 问题详情
iClinet Leaflet查询行政区划面要素数量
125EXP 2020年04月28日
iClinet Leaflet查询行政区划两个面要素时,共389个和2094个,toIndex设置为5000,查不出来结果,输出result(undifend,seccess:true);

设置为200,能查出来结果,但是iserver配置文件里面queryExpectCount设置为最大10000了,请问这是什么原因呢,谢谢!

1个回答

您好 您可设置参数toIndex:-1;maxFeatures:3000 这样就能查出所有的要素
3,352EXP 2020年04月28日
好的,谢谢!我试一下

var sqlParam = new SuperMap.GetFeaturesBySQLParameters({
            queryParameter: {
                 name: "DTPT_JCTC_pl_city@DTPT_JCTC"
            },
            datasetNames: ["DTPT_JCTC:DTPT_JCTC_pl_city"],
            toIndex:-1,
            maxFeatures:3000
        });
        L.supermap.featureService(  data_url).getFeaturesBySQL(sqlParam, function (serviceResult) {
            console.log(serviceResult.result);
            }).addTo(map); 

你好,我试了下还是报那个错误

...