-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtoolAreaReportService.js
36 lines (33 loc) · 1.17 KB
/
toolAreaReportService.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(function (angular) {
'use strict';
/**
* @memberof spApp
* @ngdoc service
* @name ToolAreaReportService
* @description
* Client side tool to generate and display an area report
*/
angular.module('tool-area-report-service', [])
.factory("ToolAreaReportService", ["$http", "$q", "MapService", "LayoutService", function ($http, $q, MapService, LayoutService) {
return {
// Override text with view-config.json
spec: {
"input": [
{
"description": $i18n(352),
"type": "area",
"constraints": {
"min": 1,
"max": 1,
"optional": false
}
}],
"description": $i18n(353)
},
execute: function (inputs) {
LayoutService.openModal('areaReport', inputs[0][0], false);
return $q.when(true)
}
};
}])
}(angular));