POST
|
I will use this property, thanks Robert Scheitlin, GISP!
... View more
08-20-2018
03:12 AM
|
0
|
1
|
4148
|
POST
|
Hy, I need to display loading icon when map is loading. With API JavaScript 3.X it is possible with map event's onUpdateStart/onUpdateEnd, like in following sample : Show loading icon | ArcGIS API for JavaScript 3.25 Equivalent is not available in version 4, so how to do that ? Is there a way to do like in version 3 globally on Map (or View) ? Regards, Flavie
... View more
08-09-2018
04:40 AM
|
1
|
3
|
6561
|
POST
|
Great, it's ok now, thanks a lot I undesrstand why map was always empty, html2canvas need parameter "useCORS" to access to services. Regarding parameter "proxy" I found a javascript version (GitHub - niklasvh/html2canvas-proxy-nodejs: Express middleware proxy for html2canvas)... and it works to. Best regards, Flavie
... View more
04-20-2018
05:00 AM
|
0
|
0
|
1971
|
POST
|
Hy Robert, ArcGIS Printing does not work in my case (not WAB but developpement from scratch). I display secure content and go through esri proxy for automatic authentification. Esri proxy is problematic with printing, it does not add token access. Result print task fails. That's the reason why I am studying screenshot solution. Flavie
... View more
04-19-2018
07:05 AM
|
0
|
0
|
1971
|
POST
|
I try webapp of demo (ArcGIS Web Application) and with widget from GitHub (GitHub - kevinsagis/ScreenshotDemo: Screenshot and SaveAs demo)... same error like me (screenshot does not work on webapp content). Screenshot of webmap does not work because canvas conversion throw error on each layer : Error in console : html2canvas: Error loading <img>:https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/10/414/278 Error in response of proxy request : html2canvas_1("error: html2canvas-proxy-php: Can not create file"); On your side does it work? Regards, Flavie
... View more
04-19-2018
04:47 AM
|
0
|
2
|
1971
|
POST
|
Hello srikanth dasari venkata, I try to do the same thing but i have a problem. Generated image is almost empty, i have only buttons +/- and copyright, but nothing about content map. I follow your advice, that is use 0.5.0 version... I also try to use last version but : - there is always no map content. - it does not work with IE 11. Here is my code, do you see something wrong ? Thanks a lot Flavie <!DOCTYPE html> <html> <head> <title>Test screen shot</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <link rel="stylesheet" href="https://js.arcgis.com/3.23/esri/css/esri.css"> <style> #tools { top: 20px; color: #444; height: auto; font-family: arial; right: 20px; margin: 5px; padding: 10px; position: absolute; width: 115px; z-index: 40; border: solid 2px #666; border-radius: 4px; background-color: #fff; } html, body, #mapDiv { padding:0; margin:0; height:100%; } button { display: block; } #mapDiv{ height: 250px; } </style> <script type="text/javascript" src="html2canvas.js"></script> <script src="https://js.arcgis.com/3.23/"></script> <script> var map; require([ "esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "dojo/dom", "dojo/on", "dojo/domReady!" ], function( Map, ArcGISDynamicMapServiceLayer, dom, on ) { map = new Map("mapDiv", { basemap: "streets", center: [-25.312, 34.307], zoom: 3 }); map.on("load", init); var demographicsLayer = new ArcGISDynamicMapServiceLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer"); map.addLayer(demographicsLayer); function init() { on(dom.byId("screenShotTool"), "click", function(evt) { screenShot(); }); } function screenShot(){ html2canvas(document.getElementById('mapDiv')).then(function(canvas){ document.body.appendChild(canvas); }); } }); </script> </head> <body> <div id="tools"> <button id="screenShotTool">Screen shot</button> </div> <div id="mapDiv"></div> </body> </html>
... View more
04-11-2018
07:04 AM
|
0
|
6
|
2862
|
POST
|
Hello AFili-esristaff, Proxy limitation on printing is still present? Thanks, Flavie
... View more
04-10-2018
08:03 AM
|
0
|
0
|
4784
|
POST
|
Hi Roshni, I found another solution, I request myself with dojo class "request/xhr". Regards, Flavie var layerInfo = null; var requestURL = layerUrl + "?f=json"; requestXHR(requestURL, { handleAs: "json", sync: true, headers: { "X-Requested-With": null } }).then(function(data){ layerInfo = data; }); return layerInfo;
... View more
03-30-2018
02:52 AM
|
4
|
6
|
2131
|
POST
|
Hy roshni basu, I ask myslef the same question. Have you found a way to do that? Regards, Flavie
... View more
03-27-2018
01:12 AM
|
2
|
8
|
2131
|
POST
|
Hy, I want to add button on each suggestion line in Search component. In this way user can trigger a specific treatment if he want. I try to put HTML code into property "suggestionTemplate" of Search component, but HTML code is not interpreted. HTML code is displayed... I tried with strong HTML balise. Sample of code : suggestionTemplate: <strong>Nom:</strong> ${nom_veloroute}", Result in webapp: I see nothing at Search component level for that... do you have an idea? Thanks, Flavie
... View more
01-16-2018
02:43 AM
|
0
|
2
|
1414
|
POST
|
Shan, Than you for all informations, it will be useful to me! I use ArcGIS Server 10.3.1. And I found JSON structure by testing a case in error { "error": { "code": 500, "message": "DIRECTORY/SERVICE/MapServer not found ", "details": [] } } Regards, Flavie
... View more
07-20-2017
03:38 AM
|
1
|
0
|
4291
|
POST
|
Hy Bruce, Sorry for the late response, I had to interrupt my project for another. Thanks for your sample toolbox. Like this I discovered DataInteroperability extension. But that does not solve my problem, you does not call arcpy library in PythonCaller component. So I used SystemCaller instead of PythonCaller. Methodology is different, but it also acceptable for my project. Thanks again, Flavie
... View more
07-01-2017
12:21 AM
|
0
|
0
|
1820
|
POST
|
Hy, Do you know it there is documentation of error codes in ArcGIS Server API REST ? Here is what i am looking for : JSON structure of result in cas of error List of error codes I try to find it in online documentation (ArcGIS Server REST API)... but without success. Thank you in advance, Flavie
... View more
06-30-2017
11:55 PM
|
0
|
6
|
9444
|
POST
|
Thank you! And from my side I also found reference of similar problem : BUG-000096662 : A CSV with attribute that contains URL values set as hyperlink in ArcGIS Online pop-ups fails to redirect to the right page if it does not contain "HTTP://". So the only solution for me is : Have URL with HTTP/HTTPS protocol; Or use custom Popup and Prefix URL with HTTP/HTTPS Flavie
... View more
06-14-2017
08:54 AM
|
1
|
0
|
1417
|
Title | Kudos | Posted |
---|---|---|
1 | 09-27-2016 12:33 AM | |
1 | 07-20-2017 03:38 AM | |
1 | 06-14-2017 08:54 AM | |
1 | 08-09-2018 04:40 AM | |
4 | 03-30-2018 02:52 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|