@@ -5,12 +5,17 @@ define([
5
5
6
6
return {
7
7
map : true ,
8
- printTaskURL : 'https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task' ,
8
+
9
+ /*
10
+ printTaskURL must be on the same same as application
11
+ or the server must be configured for CORS
12
+ or you can use a proxy
13
+ */
14
+ printTaskURL : 'http://gis.scwa.ca.gov/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task' ,
15
+ //'https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task',
9
16
10
17
startup : function ( ) {
11
- window . setTimeout ( function ( ) {
12
- topic . publish ( 'reportWidget/createReport' ) ;
13
- } , 200 ) ;
18
+ topic . publish ( 'reportWidget/createReport' ) ;
14
19
} ,
15
20
16
21
reportLayout : {
@@ -32,28 +37,34 @@ define([
32
37
right : 30
33
38
} ,
34
39
font : {
35
- color : 20 ,
40
+ color : [ 33 , 33 , 33 ] ,
36
41
size : 11 ,
37
42
font : 'helvetica' ,
38
43
style : 'normal'
39
44
} ,
40
45
line : {
41
46
width : 0.5 ,
42
- color : 0
47
+ color : 30
43
48
} ,
44
49
border : {
45
50
width : 0.5 ,
46
51
color : 128
47
52
} ,
48
53
header : {
49
54
text : 'City of Petaluma Parcel Report' ,
55
+ left : 306 , // page width = 612 pts
56
+ top : 40 ,
57
+ align : 'center' ,
50
58
font : {
51
- color : [ 41 , 128 , 185 ] ,
52
- size : 20 ,
59
+ color : [ 66 , 66 , 66 ] ,
60
+ size : 24 ,
53
61
style : 'bold'
54
62
} ,
55
63
line : {
56
- width : 1
64
+ left : 60 ,
65
+ top : 47 ,
66
+ width : 1.5 ,
67
+ color : 66
57
68
}
58
69
} ,
59
70
footer : {
@@ -62,6 +73,7 @@ define([
62
73
color : 66
63
74
} ,
64
75
date : {
76
+ left : 35 , // just inside the left margin
65
77
includeTime : false ,
66
78
font : {
67
79
color : [ 66 , 66 , 66 ] ,
@@ -71,6 +83,8 @@ define([
71
83
} ,
72
84
copyright : {
73
85
text : 'Copyright 2015, City of Petaluma California' ,
86
+ left : 575 , // just inside the right margin
87
+ align : 'right' ,
74
88
font : {
75
89
color : [ 66 , 66 , 66 ] ,
76
90
size : 9 ,
@@ -79,27 +93,37 @@ define([
79
93
}
80
94
} ,
81
95
map : {
82
- top : 55 ,
83
- left : 35 ,
96
+ top : 85 ,
97
+ left : 40 ,
84
98
height : 250 ,
85
99
width : 290 ,
86
- dpi : 360 , //multiple of 72
100
+ dpi : 144 , //multiple of 72
87
101
format : 'PNG32' ,
88
102
preserveScale : true ,
89
103
border : true
90
104
} ,
91
- images : [ ] ,
105
+ images : [
106
+ {
107
+ top : 15 ,
108
+ left : 15 ,
109
+ width : 50 ,
110
+ height : 50 ,
111
+ url : '/proxy/proxy.ashx?https://xara1-4.cityofpetaluma.net/jsviewers/maplibrary/images/Petaluma1858verC2_graybg.bmp'
112
+ }
113
+ ] ,
92
114
text : [ ] ,
115
+ lines : [ ] ,
116
+ shapes : [ ] ,
93
117
attributes : [
94
118
{
95
- top : 67 ,
119
+ top : 97 ,
96
120
left : 350 ,
97
121
height : 235 ,
98
122
width : 225 ,
99
123
title : {
100
124
text : 'These are attributes' ,
101
125
font : {
102
- color : 41 ,
126
+ color : [ 66 , 66 , 66 ] ,
103
127
size : 12 ,
104
128
style : 'bold'
105
129
}
@@ -160,25 +184,21 @@ define([
160
184
]
161
185
} ,
162
186
{
163
- top : 350 ,
187
+ top : 370 ,
164
188
left : 35 ,
165
189
right : 45 ,
166
190
height : 270 ,
167
191
title : {
168
192
text : 'These are attributes two' ,
169
193
font : {
170
- color : 40 ,
194
+ color : [ 66 , 66 , 66 ] ,
171
195
size : 12 ,
172
196
style : 'bold'
173
197
}
174
198
} ,
175
199
border : true ,
176
200
layout : 'table' ,
177
- fields : [
178
- {
179
- label : 'Tabular Attributes will go here'
180
- }
181
- ]
201
+ fields : [ ]
182
202
}
183
203
]
184
204
0 commit comments