<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Directions Widget, modify Logo at top of Print Results in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1360462#M23313</link>
    <description>&lt;P&gt;I'm using Enterprise 11.1, and some of us are still using Web App builder.&amp;nbsp; My question is specifically on the Directions widget.&amp;nbsp; There is a print button within the widget that puts a generic ESRI logo at top of the results page along with a map and turn by turn directions.&amp;nbsp; I just want to know how to change that ESRI logo to another logo.&amp;nbsp; I've seen&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;posts on how to change the stop icons in the map results but I can't seem to find the function in Widget.js that handles the popup page of html results for the print job.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2023 14:55:58 GMT</pubDate>
    <dc:creator>JoshV</dc:creator>
    <dc:date>2023-12-15T14:55:58Z</dc:date>
    <item>
      <title>Directions Widget, modify Logo at top of Print Results</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1360462#M23313</link>
      <description>&lt;P&gt;I'm using Enterprise 11.1, and some of us are still using Web App builder.&amp;nbsp; My question is specifically on the Directions widget.&amp;nbsp; There is a print button within the widget that puts a generic ESRI logo at top of the results page along with a map and turn by turn directions.&amp;nbsp; I just want to know how to change that ESRI logo to another logo.&amp;nbsp; I've seen&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;posts on how to change the stop icons in the map results but I can't seem to find the function in Widget.js that handles the popup page of html results for the print job.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 14:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1360462#M23313</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2023-12-15T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget, modify Logo at top of Print Results</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1361122#M23315</link>
      <description>&lt;P&gt;Any ideas anyone?&amp;nbsp; by the way, I'm using LaunchPad theme if that helps any.&amp;nbsp; I've seen a few different examples in the style.css of that theme for different issues others were encountering.&amp;nbsp; I haven't been able to locate that esri logo image itself so I'm wondering if I need to override a setting in that directions widget popup once the print button is clicked to change that logo?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 20:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1361122#M23315</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2023-12-14T20:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget, modify Logo at top of Print Results</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1361394#M23316</link>
      <description>&lt;P&gt;this code when added to the index.html is close but it only adds a logo to bottom left of my map.&amp;nbsp; I need to change the logo to the html page where the directions are printed&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;.map .esriMapContainer .esriMapLayers:before {
background-image: url(images/image.png);
background-size: cover;
background-repeat: no-repeat;
position: absolute;
bottom: 2px;
left: 5px;
z-index: 1000;
height: 36px;
width: 148px;
content: ' ';
padding: 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 15:00:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1361394#M23316</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2023-12-15T15:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget, modify Logo at top of Print Results</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1364657#M23327</link>
      <description>&lt;P&gt;I ended up solving this by making my own customized html page within the onDirectionsFinished function of widget.js of Directions widget.&amp;nbsp; the printresult function is where you can populate a global variable to store the map jpg url&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//added code............................................................................................
        const div = document.createElement('div');
        const img = document.createElement('img');
        const mapImg = document.createElement('img');
        //Had to set a timeout to allow the printtask results time to catch up
        const myTimeout = setTimeout(finishhim, 7000);
        //Use printtask to get image
        var url = 'https://arcgis.com/mapping4/rest/services/Custom_Print_Service/GPServer/Export%20Web%20Map';
        var oWid = map.width/2;
        var oHgt = map.height/2;
        var printTask = new PrintTask(url);
        var template = new PrintTemplate();
        var br = document.createElement("br");

        template.format = "jpg";
        template.layout = "MAP_ONLY";
        template.preserveScale = true;
        template.showAttribution = false;

        img.src='https://localhost:3344/webappbuilder/apps/7/widgets/Directions/images/coplogo.png';
        
        var params = new PrintParameters();
        params.map = this.map;
        params.template = template;
        printTask.execute(params, lang.hitch(this, this.printResult));
        
        function finishhim(){
          const mapImg2 = document.createElement('img');
          div.appendChild(img);
          div.appendChild(br);
          const p = document.createElement('p');
          var x = [];
          x.push('&amp;lt;br/&amp;gt;');

          div.innerHTML += x;
          if (evt.result.routeResults.length &amp;gt; 0) {

            const features = evt.result.routeResults[0].directions.features;
            count = 0;
            features.forEach(function (result, i) {
    
              if (count &amp;gt; 0) {
                x.push(result.attributes.text);
                div.innerHTML += count + '--' + x[count] + '&amp;lt;br&amp;gt;';
                
              }
              count = count + 1; 
            });

          }   
          mapImg2.src=img2txt;
          
          div.appendChild(mapImg2);
          const htmlString = div.outerHTML; 
          const newWindow = window.open();
          newWindow.document.write(htmlString); 
        }
        
        //............................................................................................................

        if(lang.isArrayLike(routeResults) &amp;amp;&amp;amp; routeResults.length &amp;gt; 0){&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Dec 2023 23:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/directions-widget-modify-logo-at-top-of-print/m-p/1364657#M23327</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2023-12-27T23:52:18Z</dc:date>
    </item>
  </channel>
</rss>

