<?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 Re: PrintTask not printing polyline in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632787#M59069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;does the printtask support multiple graphics layers? i didnt think it did&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;have you tried adding the graphic to the default map.graphics instead of instantiating a second graphicslayer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 13:55:07 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2014-06-03T13:55:07Z</dc:date>
    <item>
      <title>PrintTask not printing polyline</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632784#M59066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a polyline symbol, add it to a map, and then use PrintTask to create a jpg.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything appears to be ok on screen, but when I run the print task, the lines are not there (see attachments). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen this before?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; //create vertical line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var point1 = new esri.geometry.Point(xLoc, 1920322.017, CountyMap.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var point2 = new esri.geometry.Point(xLoc, 1795070.155, CountyMap.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var line = new esri.geometry.Polyline(CountyMap.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;line.addPath([point1, point2]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var lineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0, 0, 0]), 2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LineGraphic = new esri.Graphic(line, lineSymbol)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//add vertical line to CountyMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyVLineLayer = new esri.layers.GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var CountyVLineRenderer = new SimpleRenderer(lineSymbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyVLineLayer.setRenderer(CountyVLineRenderer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyMap.addLayer(CountyVLineLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyVLineLayer.add(LineGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//create horizontal line&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var point1 = new esri.geometry.Point(834451.011, yLoc, CountyMap.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var point2 = new esri.geometry.Point(949493.516, yLoc, CountyMap.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var line = new esri.geometry.Polyline(CountyMap.spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;line.addPath([point1, point2]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var lineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0, 0, 0]), 2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LineGraphic = new esri.Graphic(line, lineSymbol)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//add vertical line to CountyMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyHLineLayer = new esri.layers.GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var CountyHLineRenderer = new SimpleRenderer(lineSymbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyHLineLayer.setRenderer(CountyHLineRenderer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyMap.addLayer(CountyHLineLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyHLineLayer.add(LineGraphic);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632784#M59066</guid>
      <dc:creator>SandraDema</dc:creator>
      <dc:date>2014-06-02T17:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask not printing polyline</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632785#M59067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Switch these two lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CountyMap.addLayer(CountyVLineLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CountyVLineLayer.add(LineGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tammy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 20:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632785#M59067</guid>
      <dc:creator>TammyBearly</dc:creator>
      <dc:date>2014-06-02T20:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask not printing polyline</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632786#M59068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ssdema&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried swapping those two lines, but unfortunately, I am still getting the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find it very odd that the graphic appears fine on screen but the print task is unable to render it properly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 12:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632786#M59068</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-06-03T12:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask not printing polyline</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632787#M59069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;does the printtask support multiple graphics layers? i didnt think it did&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;have you tried adding the graphic to the default map.graphics instead of instantiating a second graphicslayer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 13:55:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-not-printing-polyline/m-p/632787#M59069</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-06-03T13:55:07Z</dc:date>
    </item>
  </channel>
</rss>

