您好,按照桌面端的参数填入代码,可是仍然报错,怎么回事呀?
map = L.map('map', { // crs: L.CRS.NonEarthCRS({ // bounds: L.bounds([-2640403.63, 1873792.1], [3247669.39, 5921501.4]), // origin: L.point(-2640403.63, 5921501.4) // }), crs:L.CRS.EPSG4326, center: [35, 120], maxZoom: 18, zoom: 2 }); L.supermap.tiledMapLayer(baseUrl, {noWrap: true}).addTo(map).once("load", function () { surfaceAnalystProcess(); }); function surfaceAnalystProcess() { surfaceAnalystParameters = new SuperMap.DatasetSurfaceAnalystParameters({ extractParameter: new SuperMap.SurfaceAnalystParametersSetting({ datumValue: 0, interval: 2, resampleTolerance: 0, smoothMethod: SuperMap.SmoothMethod.BSPLINE, smoothness: 3, clipRegion: null }), dataset: "China_ProCenCity_pt@China", resolution: 9000, zValueFieldName: "Temp0430" }); surfaceAnalystService = L.supermap.spatialAnalystService(serviceUrl); surfaceAnalystService.surfaceAnalysis(surfaceAnalystParameters, function (serviceResult) { var result = serviceResult.result; console.log(result); if (result && result.recordset && result.recordset.features) { resultLayer = L.geoJSON(result.recordset.features, {weight: 3}).addTo(map); } else { alert(serviceResult.error.errorMsg); } }); }
1.当我使用我发布的China空间分析服务url,就如上图一样报错
2.当我使用iServer自带的sample空间分析服务(为什么这个服务里面有China的数据集).控制台不报错
3.上面两种都不能显示出等值线
谢谢