<?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 Print widget not working with Print Symbol. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-not-working-with-print-symbol/m-p/548242#M51020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a Picturemarker. When I am trying to print along with the symbol my Print is failing.While printing without the symbol is working. Any clue about this behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var point = evt.mapPoint;&lt;BR /&gt; let parent = this;&lt;BR /&gt; var xhr = new XMLHttpRequest();&lt;BR /&gt; xhr.open("GET", "https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg", true);&lt;BR /&gt; xhr.responseType = "blob";&lt;BR /&gt; xhr.onload = function (e) {&lt;BR /&gt; console.log(this.response);&lt;BR /&gt; var reader = new FileReader();&lt;BR /&gt; let parent1 = parent;&lt;BR /&gt; reader.onloadend = () =&amp;gt; {&lt;BR /&gt; //reader.onload = function (event) {&lt;BR /&gt; var res = reader.result;&lt;BR /&gt; console.log(res.split(',')[1]);&lt;/P&gt;&lt;P&gt;res = res.split(',')[1];&lt;/P&gt;&lt;P&gt;var point = evt.mapPoint;&lt;BR /&gt; var stopSymbol = new PictureMarkerSymbol({ "type": "esriPMS", "width": 31, "height": 31, "imageData": res, "angle": 0, "xoffset": 0, "yoffset": 0 });&lt;BR /&gt; var stop = parent1.map.graphics.add(new Graphic(point, stopSymbol));&lt;BR /&gt; pxWidth = parent1.map.extent.getWidth() / parent1.map.width;&lt;BR /&gt; padding = 3 * pxWidth;&lt;BR /&gt; qGeometry = new Extent({&lt;BR /&gt; "xmin": point.x - padding,&lt;BR /&gt; "ymin": point.y - padding,&lt;BR /&gt; "xmax": point.x + padding,&lt;BR /&gt; "ymax": point.y + padding,&lt;BR /&gt; "spatialReference": point.spatialReference&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;topic.publish("mapClick", { X: point.x, Y: point.y });&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt; var file = this.response;&lt;BR /&gt; reader.readAsDataURL(file)&lt;BR /&gt; &lt;BR /&gt; };&lt;BR /&gt; xhr.send()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/437262_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2019 12:32:42 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2019-02-13T12:32:42Z</dc:date>
    <item>
      <title>Print widget not working with Print Symbol.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-not-working-with-print-symbol/m-p/548242#M51020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a Picturemarker. When I am trying to print along with the symbol my Print is failing.While printing without the symbol is working. Any clue about this behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var point = evt.mapPoint;&lt;BR /&gt; let parent = this;&lt;BR /&gt; var xhr = new XMLHttpRequest();&lt;BR /&gt; xhr.open("GET", "https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg", true);&lt;BR /&gt; xhr.responseType = "blob";&lt;BR /&gt; xhr.onload = function (e) {&lt;BR /&gt; console.log(this.response);&lt;BR /&gt; var reader = new FileReader();&lt;BR /&gt; let parent1 = parent;&lt;BR /&gt; reader.onloadend = () =&amp;gt; {&lt;BR /&gt; //reader.onload = function (event) {&lt;BR /&gt; var res = reader.result;&lt;BR /&gt; console.log(res.split(',')[1]);&lt;/P&gt;&lt;P&gt;res = res.split(',')[1];&lt;/P&gt;&lt;P&gt;var point = evt.mapPoint;&lt;BR /&gt; var stopSymbol = new PictureMarkerSymbol({ "type": "esriPMS", "width": 31, "height": 31, "imageData": res, "angle": 0, "xoffset": 0, "yoffset": 0 });&lt;BR /&gt; var stop = parent1.map.graphics.add(new Graphic(point, stopSymbol));&lt;BR /&gt; pxWidth = parent1.map.extent.getWidth() / parent1.map.width;&lt;BR /&gt; padding = 3 * pxWidth;&lt;BR /&gt; qGeometry = new Extent({&lt;BR /&gt; "xmin": point.x - padding,&lt;BR /&gt; "ymin": point.y - padding,&lt;BR /&gt; "xmax": point.x + padding,&lt;BR /&gt; "ymax": point.y + padding,&lt;BR /&gt; "spatialReference": point.spatialReference&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;topic.publish("mapClick", { X: point.x, Y: point.y });&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt; var file = this.response;&lt;BR /&gt; reader.readAsDataURL(file)&lt;BR /&gt; &lt;BR /&gt; };&lt;BR /&gt; xhr.send()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/437262_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 12:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-not-working-with-print-symbol/m-p/548242#M51020</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2019-02-13T12:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget not working with Print Symbol.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-not-working-with-print-symbol/m-p/548243#M51021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/31310"&gt;ADITYA KUMAR&lt;/A&gt;, which version of the JS API are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 23:51:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-not-working-with-print-symbol/m-p/548243#M51021</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-02-14T23:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Print widget not working with Print Symbol.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-not-working-with-print-symbol/m-p/548244#M51022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noah,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am working on Javascript api 3.19.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 05:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-not-working-with-print-symbol/m-p/548244#M51022</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2019-02-15T05:53:38Z</dc:date>
    </item>
  </channel>
</rss>

