Skip to content

Commit 9d32e40

Browse files
[fix]mapboxgl callback promise review by qiw
1 parent 376ba94 commit 9d32e40

35 files changed

+162
-142
lines changed

examples/mapboxgl/01_mapQueryBySQL_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
}
5858
});
5959

60-
queryService = new mapboxgl.supermap.QueryService(url).queryBySQL(param, null, 'FGB').then(function (serviceResult) {
60+
queryService = new mapboxgl.supermap.QueryService(url).queryBySQL(param, 'FGB').then(function (serviceResult) {
6161
var FGBLayer = new mapboxgl.supermap.FGBLayer({
6262
url: serviceResult.result.newResourceLocation,
6363
layerID: 'points',

examples/mapboxgl/01_mapService.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
});
5757

5858
function mapService() {
59-
// new mapboxgl.supermap.MapService(url).getMapInfo(callback);
60-
mapboxgl.supermap.MapService(url).getMapInfo().then(callback);
59+
new mapboxgl.supermap.MapService(url).getMapInfo().then(callback);
6160
}
6261

6362
function callback(serviceResult) {

examples/mapboxgl/02_getFeatureBySQL_FGB.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777

7878
new mapboxgl.supermap.FeatureService(dataUrl).getFeaturesBySQL(
7979
sqlParam,
80-
null,
8180
'FGB'
8281
).then(function (serviceResult) {
8382
var FGBLayer = new mapboxgl.supermap.FGBLayer({

examples/mapboxgl/04_bufferAnalystService_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
})
9797
});
9898
//缓冲区分析服务 使用 FGB 格式
99-
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).bufferAnalysis(dsBufferAnalystParameters, null, 'FGB').then(function (serviceResult) {
99+
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).bufferAnalysis(dsBufferAnalystParameters, 'FGB').then(function (serviceResult) {
100100
var FGBLayer = new mapboxgl.supermap.FGBLayer({
101101
url: serviceResult.result.newResourceLocation,
102102
strategy: 'all',

examples/mapboxgl/04_bufferAnalystService_geometry_FGB.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129

130130
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).bufferAnalysis(
131131
geoBufferAnalystParams,
132-
null,
133132
'FGB'
134133
).then(function (serviceResult) {
135134
var FGBLayer = new mapboxgl.supermap.FGBLayer({

examples/mapboxgl/04_overlayAnalystService_FGB.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060

6161
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).overlayAnalysis(
6262
datasetOverlayAnalystParameters,
63-
null,
6463
'FGB'
6564
).then(function (serviceResult) {
6665
var FGBLayer = new mapboxgl.supermap.FGBLayer({

examples/mapboxgl/04_surfaceAnalystService_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
});
8181
//创建表面分析服务实例
8282
surfaceAnalystService = new mapboxgl.supermap.SpatialAnalystService(serviceUrl);
83-
surfaceAnalystService.surfaceAnalysis(surfaceAnalystParameters, null, 'FGB').then(function (surfaceAnalystServiceResult) {
83+
surfaceAnalystService.surfaceAnalysis(surfaceAnalystParameters, 'FGB').then(function (surfaceAnalystServiceResult) {
8484
var FGBLayer = new mapboxgl.supermap.FGBLayer({
8585
url: surfaceAnalystServiceResult.result.newResourceLocation,
8686
featureLoader: function(feature) {

examples/mapboxgl/04_thiessenAnalystService_datasets_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
dataset: "Town_P@Jingjin"
5353
});
5454

55-
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).thiessenAnalysis(dThiessenAnalystParameters, null, 'FGB').then(function (serviceResult) {
55+
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).thiessenAnalysis(dThiessenAnalystParameters, 'FGB').then(function (serviceResult) {
5656
var FGBLayer = new mapboxgl.supermap.FGBLayer({
5757
url: serviceResult.result.newResourceLocation,
5858
strategy: 'all',

examples/mapboxgl/04_thiessenAnalystService_geometry_FGB.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
points: pointsList
104104
});
105105
//创建泰森多边形服务实例
106-
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).thiessenAnalysis(gThiessenAnalystParameters, null, 'FGB').then(function (serviceResult) {
106+
new mapboxgl.supermap.SpatialAnalystService(serviceUrl).thiessenAnalysis(gThiessenAnalystParameters, 'FGB').then(function (serviceResult) {
107107
var FGBLayer = new mapboxgl.supermap.FGBLayer({
108108
url: serviceResult.result.newResourceLocation,
109109
strategy: 'all',

examples/mapboxgl/rangeTheme3DLayer.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676

7777
new mapboxgl.supermap.FeatureService(dataUrl).getFeaturesBySQL(
7878
getFeatureBySQLParams,
79-
null,
8079
mapboxgl.supermap.DataFormat.GEOJSON
8180
).then(processCompleted);
8281
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy