28
28
29
29
import './sass/vars_oeedit.scss' ;
30
30
import './sass/oeedit.scss' ;
31
-
32
31
import angular from 'angular' ;
33
32
import gmfControllersAbstractDesktopController , {
34
33
AbstractDesktopController ,
@@ -48,7 +47,6 @@ class Controller extends AbstractDesktopController {
48
47
* @param {angular.IScope } $scope Scope.
49
48
* @param {angular.auto.IInjectorService } $injector Main injector.
50
49
* @param {angular.ITimeoutService } $timeout Angular timeout service.
51
- * @ngInject
52
50
*/
53
51
constructor ( $scope , $injector , $timeout ) {
54
52
super ( $scope , $injector ) ;
@@ -64,12 +62,9 @@ class Controller extends AbstractDesktopController {
64
62
* @type {import('ngeo/misc/ToolActivateMgr').ToolActivateMgr }
65
63
*/
66
64
const ngeoToolActivateMgr = $injector . get ( 'ngeoToolActivateMgr' ) ;
67
-
68
65
ngeoToolActivateMgr . unregisterGroup ( 'mapTools' ) ;
69
-
70
66
const oeEditToolActivate = new ngeoMiscToolActivate ( this , 'oeEditActive' ) ;
71
67
ngeoToolActivateMgr . registerTool ( 'mapTools' , oeEditToolActivate , true ) ;
72
-
73
68
const queryToolActivate = new ngeoMiscToolActivate ( this , 'queryActive' ) ;
74
69
ngeoToolActivateMgr . registerTool ( 'mapTools' , queryToolActivate , false ) ;
75
70
@@ -114,7 +109,6 @@ class Controller extends AbstractDesktopController {
114
109
* @type {import('gmf/theme/Themes').ThemesService } gmfObjectEditingManager The gmf theme service
115
110
*/
116
111
const gmfThemes = $injector . get ( 'gmfThemes' ) ;
117
-
118
112
gmfThemes . getThemesObject ( ) . then ( ( themes ) => {
119
113
if ( themes ) {
120
114
// Add layer vector after
@@ -143,7 +137,6 @@ class Controller extends AbstractDesktopController {
143
137
* @type {?import('ol/Feature').default<import('ol/geom/Geometry').default> }
144
138
*/
145
139
this . oeFeature = null ;
146
-
147
140
gmfObjectEditingManager . getFeature ( ) . then ( ( feature ) => {
148
141
this . oeFeature = feature ;
149
142
if ( feature ) {
@@ -152,7 +145,7 @@ class Controller extends AbstractDesktopController {
152
145
} ) ;
153
146
}
154
147
}
155
-
148
+ Controller . $inject = [ '$scope' , '$injector' , '$timeout' ] ;
156
149
/**
157
150
* @hidden
158
151
*/
@@ -161,26 +154,24 @@ const appModule = angular.module('Appoeedit', [
161
154
gmfControllersAbstractDesktopController . name ,
162
155
gmfObjecteditingModule . name ,
163
156
] ) ;
164
-
165
157
appModule . value ( 'gmfContextualdatacontentTemplateUrl' , 'gmf/contextualdata' ) ;
166
158
appModule . run (
167
159
/**
168
- * @ngInject
169
160
* @param {angular.ITemplateCacheService } $templateCache
170
161
*/
171
- ( $templateCache ) => {
172
- // @ts -ignore: webpack
173
- $templateCache . put ( 'gmf/contextualdata' , require ( './contextualdata.html' ) ) ;
174
- } ,
162
+ [
163
+ '$templateCache' ,
164
+ ( $templateCache ) => {
165
+ // @ts -ignore: webpack
166
+ $templateCache . put ( 'gmf/contextualdata' , require ( './contextualdata.html' ) ) ;
167
+ } ,
168
+ ] ,
175
169
) ;
176
-
177
170
appModule . value (
178
171
'gmfPermalinkOptions' ,
179
- /** @type {import('gmf/options').gmfPermalinkOptions } */ ( {
172
+ /** @type {import('gmf/options').gmfPermalinkOptions } */ {
180
173
pointRecenterZoom : 10 ,
181
- } ) ,
174
+ } ,
182
175
) ;
183
-
184
176
appModule . controller ( 'OEEditController' , Controller ) ;
185
-
186
177
export default appModule ;
0 commit comments