|
POST
|
1. It says "No Access-Control-Allow-Orgin" , my mapservice is not secured . I am using the web adaptor URL for print task . 2. ArcGIS Server and application both are running same machine. 3. I tried including this is code (esriConfig.request.corsEnabledServers.push("https://myserver");) in startup function of the widget , same error message I am getting. Below is code am using for printing _onBtnPrintClicked: function(){ var legendLayer = new LegendLayer(); legendLayer.layerId = "WidgetName"; legendLayer.subLayerIds = [0]; legendLayer.subLayerIds = [1]; var url = "https://servername/arcgis/rest/services/ExportWebMap5/GPServer/Export%20Web%20Map"; var printTask = new PrintTask(url); var params = new PrintParameters(); var template = new PrintTemplate(); template.format = "PDF"; template.layout = "Layout"; template.layoutOptions = {//"legendLayers": [legendLayer], // empty array means no legend "titleText": "Map Print", "authorText": "xxxxxx", "copyrightText": "yyyyy", "scalebarUnit": "Kilometers", "customTextElements": [{"titleID": "Map Reports"}, {"genderID": "All"}] }; template.preserveScale = false; debugger; template.exportOptions = { width:500, height:600, dpi:96 }; params.map = this.map; params.template = template; printTask.on("error",lang.hitch(this, this._printResultError)); printTask.execute(params, lang.hitch(this, this._printResult)); },
... View more
03-29-2018
05:51 AM
|
0
|
16
|
4982
|
|
POST
|
I added the above code in style.css file , its not reflecting in application. Trying in Chrome browser.
... View more
02-16-2018
01:12 AM
|
0
|
2
|
18542
|
|
POST
|
Hi, I want both dropdown and option menu should be in same width. In the below image option is bigger than dropdown width . Is there any way to make it fixed width for both dropdown and option.
... View more
02-15-2018
02:59 AM
|
0
|
4
|
34780
|
|
POST
|
Hi , I have configured Operations Dashboard to portal for arcgis in my system . I am not able to install the Operations dashboard in my machine . Got the below error message. ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of C:\Users\AAAAAAA\Downloads\OperationsDashboard (5).application resulted in exception. Following failure messages were detected: + Downloading https://servername/webadaptor/apps/dashboard-win/OperationsDashboard.application did not succeed. + The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. + The remote certificate is invalid according to the validation procedure.
... View more
12-20-2017
03:09 AM
|
0
|
0
|
681
|
|
POST
|
Robert, The first image is from application and second one is print out put . I am using default print widget . If you look at the both images the map extent will be different , even though if we choose map extent. Will it work like that ? Application View Print View (PDF)
... View more
12-12-2017
02:24 AM
|
0
|
4
|
2364
|
|
POST
|
Robert, Ok after adding the additional scales (25000, 15000, 10000, 7500, 5000, 2500) it will zoom to closest . But the basemap details will not display am i correct ?. Because I have not created tiles for these scales 25000, 15000, 10000, 7500, 5000, 2500 . Is my understanding correct ?
... View more
12-11-2017
03:46 AM
|
0
|
1
|
1683
|
|
POST
|
Because we need to add custom text in the map , that's the reason we are customizing . Even though in default print widget we are facing same kind of issue.
... View more
12-11-2017
02:24 AM
|
0
|
6
|
2364
|
|
POST
|
Hi Below is the code I am using it for Print the Map . The code works fine and got the output as PDF file in separate window. But the issue is map extent in the application and map extent in PDF output are not matching exactly. "Image1" is from WAB application and "Image2" is from PDF out put . Kindly refer the attached Image for reference. var url = "https://servername/gis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"; var printTask = new PrintTask(url); var params = new PrintParameters(); var template = new PrintTemplate(); template.format = "PDF"; template.layout = "MAP_ONLY"; template.layoutOptions = {"legendLayers": [legendLayers], "titleText": "Map Print", "authorText": "AAAAAAAA", "copyrightText": "BBBBBBBB", "scalebarUnit": "Kilometers"}; params.map = this.map; params.template = template; printTask.on("error",lang.hitch(this, this._printResultError)); printTask.execute(params, lang.hitch(this, this._printResult)); _printResultError:function(err) { alert(err); }, _printResult:function(res){ window.open(res.url, "_blank") },
... View more
12-08-2017
04:21 AM
|
0
|
8
|
2536
|
|
POST
|
Robert, My scenario is 1.Created basemap with 4 scales only (1:500000,1:200000,1:100000,1:50000). 2.Through query operation(custom tool or widget) i got the feature set (dynamically) . The feature set will have the extent and that extent is not falling into the base map scale. .For example I may get scale for the featureset 1:2500 or 1:7000 or 1:8000 . 3.In that case Can i zoom to 1:2500 or 1:7000 or 1:8000 ? . Is it possible to view the basemap details in 1:2500 or 1:7000 or 1:8000 . 4. The featureset scale 1:2500 or 1:7000 or 1:8000 is not constant , this will vary depends on the user query.
... View more
12-08-2017
12:09 AM
|
0
|
3
|
1683
|
|
POST
|
Hi, I have base map for entire country. Is it possible to restrict for some users and they can see only particular state in a base map. For example user "A" can see only "Texas" state information , he should not view the other state information . Is that possible in base map .
... View more
12-07-2017
10:33 PM
|
0
|
1
|
869
|
|
POST
|
Yes web adaptor was installed . Map service is not secured. Thanks for the help robert its working.
... View more
12-07-2017
09:09 PM
|
0
|
0
|
1291
|
|
POST
|
Getting same error in Print Widget also , kindly refer the attached screen shot .
... View more
12-06-2017
03:56 AM
|
0
|
2
|
1291
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-30-2016 12:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-29-2025
06:43 AM
|