<?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: PolylineSymbols are being added, but not displayed in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49735#M4379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome. Glad you got it worked out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 17:42:55 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2013-07-29T17:42:55Z</dc:date>
    <item>
      <title>PolylineSymbols are being added, but not displayed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49732#M4376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone, I have a problem that I'm hoping one of you can help me with. I've got a bunch of PictureMarkerSymbols, and I want to draw lines between them and a single other PictureMarkerSymbol. I've got all of the necessary coordinates, and I'm not seeing any errors when I create the appropriate objects. However, none of the lines I'm creating are being displayed on the map. I'll post a part of the code below, please let me know if you have any idea what might be wrong!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var polylineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([204, 102, 51]), 4);&amp;nbsp; path = $.map(line.points, function(point) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p = new esri.geometry.Point(point.lng, point.lat); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return p;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp; polyline = new esri.geometry.Polyline(map.spatialReference); polyline.addPath([path[0], path[1]]);&amp;nbsp; map.graphics.add(new esri.Graphic(polyline, polylineSymbol));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 14:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49732#M4376</guid>
      <dc:creator>CameronMacNeil</dc:creator>
      <dc:date>2013-07-29T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: PolylineSymbols are being added, but not displayed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49733#M4377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're defining your graphic polylines as having the map's spatial reference. Are you positive that the map's spatial reference is defined as geographic? If you're using ESRI's basemaps, the map's spatial reference is web mercator which means you will need to convert your coordinates from lat/long to web mercator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 15:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49733#M4377</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-07-29T15:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: PolylineSymbols are being added, but not displayed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49734#M4378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That was the problem! I was defining the polyline with the basemap's spatial reference, but the points I was using were all using the default of 4326. Once I defined the polyline with that same reference, it worked. I don't understand spatial references very well, so I didn't realize that the two weren't compatible!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the prompt reply and the good advice!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 15:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49734#M4378</guid>
      <dc:creator>CameronMacNeil</dc:creator>
      <dc:date>2013-07-29T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: PolylineSymbols are being added, but not displayed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49735#M4379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome. Glad you got it worked out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 17:42:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polylinesymbols-are-being-added-but-not-displayed/m-p/49735#M4379</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-07-29T17:42:55Z</dc:date>
    </item>
  </channel>
</rss>

