Skip to content

Commit a79a9f6

Browse files
committed
2 parents 92c9122 + b7d5ac8 commit a79a9f6

File tree

8 files changed

+1091
-1132
lines changed

8 files changed

+1091
-1132
lines changed

.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

build/deps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var deps = {
1515
"./src/common/online/Online.js"
1616
],
1717
"iPortal": [
18-
"./src/common/iPortal/Portal.js"
18+
"./src/common/iPortal/iPortal.js"
1919
],
2020
"iServer": [
2121
//Data

dist/iclient9-leaflet.js

Lines changed: 654 additions & 654 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.js

Lines changed: 426 additions & 426 deletions
Large diffs are not rendered by default.

src/common/iPortal/Service.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require('../util/Request');
2-
require('./ServiceUpdateParam');
32

43
SuperMap.Service = SuperMap.Class({
54

@@ -48,10 +47,12 @@ SuperMap.Service = SuperMap.Class({
4847
},
4948

5049
update: function () {
51-
var serviceUpdateParam = new SuperMap.ServiceUpdateParam();
52-
for (var key in serviceUpdateParam) {
53-
serviceUpdateParam[key] = this[key];
54-
}
50+
var serviceUpdateParam = {
51+
authorizeSetting: this.authorizeSetting,
52+
metadata: this.metadata,
53+
tags: this.tags,
54+
thumbnail: this.thumbnail
55+
};
5556
return this.request.put(this.serviceUrl, serviceUpdateParam);
5657
}
5758

src/common/iPortal/ServiceUpdateParam.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/common/iPortal/ServicesDeleteParam.js

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
require('./Service');
2-
require('./ServicesDeleteParam');
32
require('./ServicesQueryParam');
43
require('../util/Request');
54

6-
SuperMap.Portal = SuperMap.Class({
5+
SuperMap.iPortal = SuperMap.Class({
76

87
initialize: function (iportalUrl, token) {
98
this.iportalUrl = iportalUrl;
@@ -31,14 +30,14 @@ SuperMap.Portal = SuperMap.Class({
3130
});
3231
},
3332

34-
deleteServices: function (params) {
33+
deleteServices: function (ids) {
3534
var serviceUrl = this.iportalUrl + "/web/services";
36-
return this.request.delete(serviceUrl, params);
35+
return this.request.delete(serviceUrl, {ids: ids});
3736
}
3837

3938
})
4039

4140
module.exports = function (url) {
42-
return new SuperMap.Portal(url);
41+
return new SuperMap.iPortal(url);
4342
};
4443

0 commit comments

Comments
 (0)