<?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 Create Map Image Including Graphics and Layers Server side in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-map-image-including-graphics-and-layers/m-p/1005673#M70948</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to generate a map image with points/lines and layers similar to what you would get client side with &lt;SPAN&gt;takeScreenshot&lt;/SPAN&gt;, but on server side. I tried using&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://wkhtmltopdf.org/" target="_self"&gt;wkhtmltoimage&lt;/A&gt; which renders html into a image, but every time I run into the issue of the map image being blank. When turning on javascript debug there's a reference error "Warning: undefined:0 ReferenceError: Can't find variable: Map" with every 4.x sample live view which in the browser displays as expected. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wkhtmltoimage is known to have problems with javascript but I was wondering if anyone else has used it and seen correct results, or if there is an alternative for generating a map image server side? Ideally I would be able to provide extent, basemap, graphics, and information for the different kinds of layers being used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 21:49:21 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-11-30T21:49:21Z</dc:date>
    <item>
      <title>Create Map Image Including Graphics and Layers Server side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-map-image-including-graphics-and-layers/m-p/1005673#M70948</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to generate a map image with points/lines and layers similar to what you would get client side with &lt;SPAN&gt;takeScreenshot&lt;/SPAN&gt;, but on server side. I tried using&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://wkhtmltopdf.org/" target="_self"&gt;wkhtmltoimage&lt;/A&gt; which renders html into a image, but every time I run into the issue of the map image being blank. When turning on javascript debug there's a reference error "Warning: undefined:0 ReferenceError: Can't find variable: Map" with every 4.x sample live view which in the browser displays as expected. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wkhtmltoimage is known to have problems with javascript but I was wondering if anyone else has used it and seen correct results, or if there is an alternative for generating a map image server side? Ideally I would be able to provide extent, basemap, graphics, and information for the different kinds of layers being used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 21:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-map-image-including-graphics-and-layers/m-p/1005673#M70948</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-11-30T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create Map Image Including Graphics and Layers Server side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-map-image-including-graphics-and-layers/m-p/1005828#M70952</link>
      <description>&lt;P&gt;Mitchell,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have no experience with wkhtmltoimage but that you are wanting to do is exactly what the print task on ArcGIS server is designed to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-PrintTask.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-PrintTask.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/printtask-amd.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/printtask-amd.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-map-image-including-graphics-and-layers/m-p/1005828#M70952</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-01T13:39:15Z</dc:date>
    </item>
  </channel>
</rss>

