Commit 59a5474 1 parent b0a903f commit 59a5474 Copy full SHA for 59a5474
File tree 3 files changed +13
-52
lines changed
3 files changed +13
-52
lines changed Original file line number Diff line number Diff line change 1
1
define ( [
2
- 'esri/urlUtils' ,
3
- 'esri/layers/ImageParameters'
4
- ] , function ( urlUtils , ImageParameters ) {
2
+ 'esri/urlUtils'
3
+ ] , function ( urlUtils ) {
5
4
6
5
urlUtils . addProxyRule ( {
7
- urlPrefix : 'http://gis.scwa.ca.gov ' ,
6
+ urlPrefix : 'http://server.domain ' ,
8
7
proxyUrl : '/proxy/proxy.ashx'
9
8
} ) ;
10
9
11
- var imageParameters = new ImageParameters ( ) ;
12
- imageParameters . format = 'png32' ;
13
-
14
10
return {
15
11
isDebug : true ,
16
12
17
13
mapOptions : {
18
- basemap : 'streets ' ,
14
+ basemap : 'hybrid ' ,
19
15
center : [ - 122.6314 , 38.2658 ] ,
16
+ // center: [-122.431297, 37.773972],
20
17
zoom : 19 ,
21
18
sliderStyle : 'small'
22
19
} ,
@@ -35,33 +32,7 @@ define([
35
32
} ,
36
33
collapseButtonsPane : 'center' , //center or outer
37
34
38
- operationalLayers : [
39
- {
40
- type : 'dynamic' ,
41
- url : 'https://xara1-4.cityofpetaluma.net/arcgis/rest/services/BaseMaps/Basemap_WM_CL/MapServer' ,
42
- title : 'Basemap' ,
43
- options : {
44
- id : 'countyBasemap' ,
45
- opacity : 1 ,
46
- visible : true ,
47
- imageParameters : imageParameters
48
- }
49
- } ,
50
- {
51
- type : 'dynamic' ,
52
- url : 'https://xara1-4.cityofpetaluma.net/arcgis/rest/services/BaseMaps/Parcels_Public/MapServer' ,
53
- title : 'Parcels' ,
54
- options : {
55
- id : 'countParcels' ,
56
- opacity : 0.7 ,
57
- visible : true ,
58
- imageParameters : imageParameters
59
- } ,
60
- identifyLayerInfos : {
61
- layerIds : [ 0 ]
62
- }
63
- }
64
- ] ,
35
+ operationalLayers : [ ] ,
65
36
66
37
widgets : {
67
38
growler : {
Original file line number Diff line number Diff line change @@ -6,12 +6,11 @@ define([
6
6
map : true ,
7
7
8
8
/*
9
- printTaskURL must be on the same same as application
9
+ printTaskURL must be on the same server as application
10
10
or the server must be configured for CORS
11
11
or you can use a proxy
12
12
*/
13
- printTaskURL : 'http://gis.scwa.ca.gov/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task' ,
14
- //'https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task',
13
+ printTaskURL : 'https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task' ,
15
14
16
15
startup : function ( ) {
17
16
topic . publish ( 'reportWidget/createReport' ) ;
@@ -81,7 +80,7 @@ define([
81
80
}
82
81
} ,
83
82
copyright : {
84
- text : 'Copyright 2015 , City of Petaluma California' ,
83
+ text : 'Copyright 2016 , City of Petaluma California' ,
85
84
left : 575 , // just inside the right margin
86
85
align : 'right' ,
87
86
font : {
@@ -101,15 +100,6 @@ define([
101
100
preserveScale : true ,
102
101
border : true
103
102
} ,
104
- images : [
105
- {
106
- top : 15 ,
107
- left : 15 ,
108
- width : 50 ,
109
- height : 50 ,
110
- url : '/proxy/proxy.ashx?https://xara1-4.cityofpetaluma.net/jsviewers/maplibrary/images/Petaluma1858verC2_graybg.bmp'
111
- }
112
- ] ,
113
103
text : [ ] ,
114
104
lines : [ ] ,
115
105
shapes : [ ] ,
Original file line number Diff line number Diff line change @@ -60,16 +60,16 @@ define([
60
60
addjsPDFModules : function ( ) {
61
61
var modules = [
62
62
// load the autotable plugin
63
- 'https//cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/2.0.16/jspdf.plugin.autotable.js'
63
+ 'https: //cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/2.0.16/jspdf.plugin.autotable.js'
64
64
] ;
65
65
66
66
switch ( this . reportLayout . output . type ) {
67
67
case 'blob' :
68
68
case 'bloburi' :
69
69
case 'bloburl' :
70
70
case 'save' :
71
- modules . push ( 'https//cdn.rawgit.com/eligrey/Blob.js/master/Blob.js' ) ;
72
- modules . push ( 'https//cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2014-11-29/FileSaver.min.js' ) ;
71
+ modules . push ( 'https: //cdn.rawgit.com/eligrey/Blob.js/master/Blob.js' ) ;
72
+ modules . push ( 'https: //cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2014-11-29/FileSaver.min.js' ) ;
73
73
break ;
74
74
default :
75
75
}
@@ -611,7 +611,7 @@ define([
611
611
612
612
getProxiedUrl : function ( url ) {
613
613
var proxyRule = urlUtils . getProxyRule ( url ) ;
614
- if ( proxyRule . proxyUrl ) {
614
+ if ( proxyRule && proxyRule . proxyUrl ) {
615
615
return proxyRule . proxyUrl + '?' + url ;
616
616
}
617
617
return url ;
You can’t perform that action at this time.
0 commit comments