Skip to content

Commit 620a244

Browse files
[fix]imageCollectionService和common的options冲突 review by qiwei
1 parent e6910c4 commit 620a244

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/common/iServer/ImageCollectionService.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { CommonServiceBase } from './CommonServiceBase';
2222
export default class ImageCollectionService extends CommonServiceBase {
2323
constructor(url, options) {
2424
super(url, options);
25-
this.options = options || {};
25+
this._serviceOptions = options || {};
2626
if (options) {
2727
Util.extend(this, options);
2828
}
@@ -47,7 +47,7 @@ export default class ImageCollectionService extends CommonServiceBase {
4747
getLegend(queryParams, callback) {
4848
var me = this;
4949
var pathParams = {
50-
collectionId: me.options.collectionId
50+
collectionId: me._serviceOptions.collectionId
5151
};
5252
var path = Util.convertPath('/collections/{collectionId}/legend', pathParams);
5353
var url = Util.urlPathAppend(me.url, path);
@@ -61,7 +61,7 @@ export default class ImageCollectionService extends CommonServiceBase {
6161
getStatistics(callback) {
6262
var me = this;
6363
var pathParams = {
64-
collectionId: me.options.collectionId
64+
collectionId: me._serviceOptions.collectionId
6565
};
6666
var path = Util.convertPath('/collections/{collectionId}/statistics', pathParams);
6767
var url = Util.urlPathAppend(me.url, path);
@@ -76,7 +76,7 @@ export default class ImageCollectionService extends CommonServiceBase {
7676
getTileInfo(callback) {
7777
var me = this;
7878
var pathParams = {
79-
collectionId: me.options.collectionId
79+
collectionId: me._serviceOptions.collectionId
8080
};
8181
var path = Util.convertPath('/collections/{collectionId}/tileInfo', pathParams);
8282
var url = Util.urlPathAppend(me.url, path);
@@ -91,7 +91,7 @@ export default class ImageCollectionService extends CommonServiceBase {
9191
deleteItemByID(featureId, callback) {
9292
var me = this;
9393
var pathParams = {
94-
collectionId: me.options.collectionId,
94+
collectionId: me._serviceOptions.collectionId,
9595
featureId: featureId
9696
};
9797
var path = Util.convertPath('/collections/{collectionId}/items/{featureId}', pathParams);
@@ -107,7 +107,7 @@ export default class ImageCollectionService extends CommonServiceBase {
107107
getItemByID(featureId, callback) {
108108
var me = this;
109109
var pathParams = {
110-
collectionId: me.options.collectionId,
110+
collectionId: me._serviceOptions.collectionId,
111111
featureId: featureId
112112
};
113113
var path = Util.convertPath('/collections/{collectionId}/items/{featureId}', pathParams);
@@ -132,7 +132,6 @@ export default class ImageCollectionService extends CommonServiceBase {
132132
}
133133
}
134134
this.events.on(eventListeners);
135-
136135
this.request({
137136
method: method || 'GET',
138137
url,

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