1
+ MainController . $inject = [ 'gmfThemes' , 'gmfDataSourcesManager' , 'gmfThemeManager' , 'defaultTheme' ] ;
2
+ QueryresultController . $inject = [ 'ngeoQueryResult' ] ;
1
3
// The MIT License (MIT)
2
4
//
3
5
// Copyright (c) 2016-2024 Camptocamp SA
@@ -23,15 +25,10 @@ import angular from 'angular';
23
25
import './displayquerygrid.css' ;
24
26
import './gmf-hidden.inc.css' ;
25
27
import gmfDatasourceManager from 'gmf/datasource/Manager' ;
26
-
27
28
import gmfLayertreeComponent from 'gmf/layertree/component' ;
28
-
29
29
import gmfMapComponent from 'gmf/map/component' ;
30
-
31
30
import ngeoMapFeatureOverlayMgr from 'ngeo/map/FeatureOverlayMgr' ;
32
-
33
31
import gmfQueryGridComponent from 'gmf/query/gridComponent' ;
34
-
35
32
import gmfThemeManager from 'gmf/theme/Manager' ;
36
33
import gmfThemeThemes from 'gmf/theme/Themes' ;
37
34
import ngeoGridModule from 'ngeo/grid/module' ;
@@ -58,7 +55,8 @@ const myModule = angular.module('gmfapp', [
58
55
gmfThemeManager . name ,
59
56
gmfThemeThemes . name ,
60
57
ngeoGridModule . name ,
61
- ngeoMapModule . name , // for ngeo.map.FeatureOverlay, perhaps remove me
58
+ ngeoMapModule . name ,
59
+ // for ngeo.map.FeatureOverlay, perhaps remove me
62
60
ngeoMiscBtnComponent . name ,
63
61
ngeoQueryComponent . name ,
64
62
] ) ;
@@ -75,7 +73,6 @@ const queryresultComponent = {
75
73
// @ts -ignore: webpack
76
74
template : require ( './partials/queryresult.html' ) ,
77
75
} ;
78
-
79
76
myModule . component ( 'gmfappQueryresult' , queryresultComponent ) ;
80
77
81
78
/**
@@ -91,7 +88,6 @@ function QueryresultController(ngeoQueryResult) {
91
88
*/
92
89
this . result = ngeoQueryResult ;
93
90
}
94
-
95
91
myModule . controller ( 'gmfappQueryresultController' , QueryresultController ) ;
96
92
97
93
/**
@@ -148,7 +144,6 @@ function MainController(gmfThemes, gmfDataSourcesManager, gmfThemeManager, defau
148
144
* @type {import('gmf/themes').GmfTheme } The selected theme.
149
145
*/
150
146
this . selectedTheme = null ;
151
-
152
147
this . updateTheme = function ( ) {
153
148
gmfThemeManager . addTheme ( this . selectedTheme ) ;
154
149
} ;
@@ -157,7 +152,6 @@ function MainController(gmfThemes, gmfDataSourcesManager, gmfThemeManager, defau
157
152
* @type {boolean }
158
153
*/
159
154
this . queryGridActive = true ;
160
-
161
155
gmfThemes . getThemesObject ( ) . then ( ( themes ) => {
162
156
if ( themes ) {
163
157
this . themes = themes ;
@@ -171,23 +165,29 @@ function MainController(gmfThemes, gmfDataSourcesManager, gmfThemeManager, defau
171
165
} ) ;
172
166
}
173
167
} ) ;
174
-
175
168
ngeoMapFeatureOverlayMgr . init ( this . map ) ;
176
169
}
177
-
178
170
myModule . controller ( 'MainController' , MainController ) ;
179
-
180
171
myModule . constant ( 'gmfDisplayQueryGridOptions' , {
181
172
featuresStyle : {
182
- fill : { color : [ 255 , 170 , 0 , 0.6 ] } ,
173
+ fill : {
174
+ color : [ 255 , 170 , 0 , 0.6 ] ,
175
+ } ,
183
176
circle : {
184
- fill : { color : [ 255 , 170 , 0 , 0.6 ] } ,
177
+ fill : {
178
+ color : [ 255 , 170 , 0 , 0.6 ] ,
179
+ } ,
185
180
radius : 5 ,
186
- stroke : { color : [ 255 , 170 , 0 , 1 ] , width : 2 } ,
181
+ stroke : {
182
+ color : [ 255 , 170 , 0 , 1 ] ,
183
+ width : 2 ,
184
+ } ,
185
+ } ,
186
+ stroke : {
187
+ color : [ 255 , 170 , 0 , 1 ] ,
188
+ width : 2 ,
187
189
} ,
188
- stroke : { color : [ 255 , 170 , 0 , 1 ] , width : 2 } ,
189
190
} ,
190
191
} ) ;
191
192
options ( myModule ) ;
192
-
193
193
export default myModule ;
0 commit comments