@@ -22,7 +22,7 @@ import { CommonServiceBase } from './CommonServiceBase';
22
22
export default class ImageCollectionService extends CommonServiceBase {
23
23
constructor ( url , options ) {
24
24
super ( url , options ) ;
25
- this . options = options || { } ;
25
+ this . _serviceOptions = options || { } ;
26
26
if ( options ) {
27
27
Util . extend ( this , options ) ;
28
28
}
@@ -47,7 +47,7 @@ export default class ImageCollectionService extends CommonServiceBase {
47
47
getLegend ( queryParams , callback ) {
48
48
var me = this ;
49
49
var pathParams = {
50
- collectionId : me . options . collectionId
50
+ collectionId : me . _serviceOptions . collectionId
51
51
} ;
52
52
var path = Util . convertPath ( '/collections/{collectionId}/legend' , pathParams ) ;
53
53
var url = Util . urlPathAppend ( me . url , path ) ;
@@ -61,7 +61,7 @@ export default class ImageCollectionService extends CommonServiceBase {
61
61
getStatistics ( callback ) {
62
62
var me = this ;
63
63
var pathParams = {
64
- collectionId : me . options . collectionId
64
+ collectionId : me . _serviceOptions . collectionId
65
65
} ;
66
66
var path = Util . convertPath ( '/collections/{collectionId}/statistics' , pathParams ) ;
67
67
var url = Util . urlPathAppend ( me . url , path ) ;
@@ -76,7 +76,7 @@ export default class ImageCollectionService extends CommonServiceBase {
76
76
getTileInfo ( callback ) {
77
77
var me = this ;
78
78
var pathParams = {
79
- collectionId : me . options . collectionId
79
+ collectionId : me . _serviceOptions . collectionId
80
80
} ;
81
81
var path = Util . convertPath ( '/collections/{collectionId}/tileInfo' , pathParams ) ;
82
82
var url = Util . urlPathAppend ( me . url , path ) ;
@@ -91,7 +91,7 @@ export default class ImageCollectionService extends CommonServiceBase {
91
91
deleteItemByID ( featureId , callback ) {
92
92
var me = this ;
93
93
var pathParams = {
94
- collectionId : me . options . collectionId ,
94
+ collectionId : me . _serviceOptions . collectionId ,
95
95
featureId : featureId
96
96
} ;
97
97
var path = Util . convertPath ( '/collections/{collectionId}/items/{featureId}' , pathParams ) ;
@@ -107,7 +107,7 @@ export default class ImageCollectionService extends CommonServiceBase {
107
107
getItemByID ( featureId , callback ) {
108
108
var me = this ;
109
109
var pathParams = {
110
- collectionId : me . options . collectionId ,
110
+ collectionId : me . _serviceOptions . collectionId ,
111
111
featureId : featureId
112
112
} ;
113
113
var path = Util . convertPath ( '/collections/{collectionId}/items/{featureId}' , pathParams ) ;
@@ -132,7 +132,6 @@ export default class ImageCollectionService extends CommonServiceBase {
132
132
}
133
133
}
134
134
this . events . on ( eventListeners ) ;
135
-
136
135
this . request ( {
137
136
method : method || 'GET' ,
138
137
url,
0 commit comments