Skip to content

Commit 6e66d02

Browse files
author
Adam Collins
committed
remove poi count from interactive area report
1 parent f83b325 commit 6e66d02

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

grails-app/assets/javascripts/spApp/controller/areaReportCtrl.js

+1-21
Original file line numberDiff line numberDiff line change
@@ -218,24 +218,6 @@
218218
}
219219
};
220220

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-
239221
$scope.items = [];
240222

241223
$scope.init = function (areaQ) {
@@ -391,9 +373,7 @@
391373
$scope.checklistCounts().then(function () {
392374
$scope.distributionCounts().then(function () {
393375
$scope.journalMapDocumentCount().then(function () {
394-
$scope.gazPointCounts().then(function () {
395-
$scope.pointOfInterestCounts()
396-
})
376+
$scope.gazPointCounts()
397377
})
398378
})
399379
})

0 commit comments

Comments
 (0)