@@ -79,6 +79,7 @@ export class DatasourceManager {
79
79
* @param {angular.IQService } $q Angular q service
80
80
* @param {angular.IScope } $rootScope Angular rootScope.
81
81
* @param {angular.ITimeoutService } $timeout Angular timeout service.
82
+ * @param {angular.IInjectorService } $injector Main injector.
82
83
* @param {import('gmf/theme/Themes').ThemesService } gmfThemes The gmf Themes service.
83
84
* @param {import('gmf/layertree/TreeManager').LayertreeTreeManager } gmfTreeManager The gmf TreeManager
84
85
* service.
@@ -99,6 +100,7 @@ export class DatasourceManager {
99
100
$q ,
100
101
$rootScope ,
101
102
$timeout ,
103
+ $injector ,
102
104
gmfThemes ,
103
105
gmfTreeManager ,
104
106
ngeoBackgroundLayerMgr ,
@@ -233,6 +235,13 @@ export class DatasourceManager {
233
235
*/
234
236
this . treeCtrlsUnregister_ = null ;
235
237
238
+ /**
239
+ * @type {{import('gmf/options').gmfDatasourceOptions}
240
+ */
241
+ this . gmfDatasourceOptions = $injector . has ( 'gmfDatasourceOptions' )
242
+ ? $injector . get ( 'gmfDatasourceOptions' )
243
+ : { } ;
244
+
236
245
// === Events ===
237
246
listen ( this . ngeoBackgroundLayerMgr_ , 'change' , this . handleNgeoBackgroundLayerChange_ , this ) ;
238
247
listen ( this . gmfThemes_ , 'change' , this . handleThemesChange_ , this ) ;
@@ -738,6 +747,9 @@ export class DatasourceManager {
738
747
if ( wmtsUrl ) {
739
748
options . wmtsUrl = wmtsUrl ;
740
749
}
750
+ if ( ogcServerType === ServerType . ARCGIS && this . gmfDatasourceOptions . arcgisWMSInfoFormat ) {
751
+ options . wmsInfoFormat = this . gmfDatasourceOptions . arcgisWMSInfoFormat ;
752
+ }
741
753
// Create the data source and add it to the cache
742
754
this . dataSourcesCache_ [ id ] = new GmfDatasourceOGC ( options ) ;
743
755
}
0 commit comments