File tree 1 file changed +1
-21
lines changed
grails-app/assets/javascripts/spApp/controller
1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 218
218
}
219
219
} ;
220
220
221
- $scope . pointOfInterestCounts = function ( ) {
222
- if ( $scope . area . wkt !== undefined && $scope . area . wkt . length > 0 ) {
223
- return $http . get ( LayersService . url ( ) + "/intersect/poi/wkt?wkt=" + $scope . area . wkt + "&limit=9999999" , $scope . _httpDescription ( 'pointsOfInterestCount' ) ) . then ( function ( response ) {
224
- return $scope . setPoi ( response . data )
225
- } ) ;
226
- } else if ( ( $scope . area . pid + '' ) . indexOf ( '~' ) < 0 ) {
227
- return $http . get ( LayersService . url ( ) + "/intersect/poi/wkt?pid=" + $scope . area . pid + "&limit=9999999" , $scope . _httpDescription ( 'pointsOfInterestCount' ) ) . then ( function ( response ) {
228
- return $scope . setPoi ( response . data )
229
- } ) ;
230
- } else {
231
- var wkt = $scope . bboxToWkt ( $scope . area . bbox )
232
- return $http . get ( LayersService . url ( ) + "/intersect/poi/wkt?wkt=" + encodeURIComponent ( wkt ) + "&limit=9999999" , $scope . _httpDescription ( 'pointsOfInterestCount' ) ) . then ( function ( response ) {
233
- return $scope . setPoi ( response . data )
234
- } ) ;
235
- }
236
-
237
- } ;
238
-
239
221
$scope . items = [ ] ;
240
222
241
223
$scope . init = function ( areaQ ) {
391
373
$scope . checklistCounts ( ) . then ( function ( ) {
392
374
$scope . distributionCounts ( ) . then ( function ( ) {
393
375
$scope . journalMapDocumentCount ( ) . then ( function ( ) {
394
- $scope . gazPointCounts ( ) . then ( function ( ) {
395
- $scope . pointOfInterestCounts ( )
396
- } )
376
+ $scope . gazPointCounts ( )
397
377
} )
398
378
} )
399
379
} )
You can’t perform that action at this time.
0 commit comments