@@ -22,7 +22,7 @@ import { CommonServiceBase } from './CommonServiceBase';
2222export 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