<?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 Polyline feature layer from JSON in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polyline-feature-layer-from-json/m-p/647273#M60306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my application I want to create a polyline feature layer from this JSON file: &lt;/SPAN&gt;&lt;A href="http://ibikekrakow.com/wp-content/themes/bike/js/green.js"&gt;http://ibikekrakow.com/wp-content/themes/bike/js/green.js&lt;/A&gt;&lt;SPAN&gt; Is this file good for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found an example how to create a feature layer from points: &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/8896/feature-layer-with-ondemand-mode/8912#8912"&gt;http://gis.stackexchange.com/questions/8896/feature-layer-with-ondemand-mode/8912#8912&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;What is different in creating a polyline layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 19:23:23 GMT</pubDate>
    <dc:creator>AndrzejMilosz</dc:creator>
    <dc:date>2013-04-17T19:23:23Z</dc:date>
    <item>
      <title>Polyline feature layer from JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polyline-feature-layer-from-json/m-p/647273#M60306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my application I want to create a polyline feature layer from this JSON file: &lt;/SPAN&gt;&lt;A href="http://ibikekrakow.com/wp-content/themes/bike/js/green.js"&gt;http://ibikekrakow.com/wp-content/themes/bike/js/green.js&lt;/A&gt;&lt;SPAN&gt; Is this file good for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found an example how to create a feature layer from points: &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/8896/feature-layer-with-ondemand-mode/8912#8912"&gt;http://gis.stackexchange.com/questions/8896/feature-layer-with-ondemand-mode/8912#8912&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;What is different in creating a polyline layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 19:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polyline-feature-layer-from-json/m-p/647273#M60306</guid>
      <dc:creator>AndrzejMilosz</dc:creator>
      <dc:date>2013-04-17T19:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline feature layer from JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polyline-feature-layer-from-json/m-p/647274#M60307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can do the same thing with lines, just need to tweak the JSON you pass to the feature layer constructor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since your source file is GeoJson, you need to convert to the esri json format as well. I used this:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/geojson-utils"&gt;https://github.com/Esri/geojson-utils&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a working example:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/ZdLF7/"&gt;http://jsfiddle.net/ZdLF7/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that I included the GeoJson converter JS directly from github. If you use that code to convert your GeoJson you should download and host that .js file yourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 23:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polyline-feature-layer-from-json/m-p/647274#M60307</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-04-17T23:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline feature layer from JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polyline-feature-layer-from-json/m-p/647275#M60308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That works, thank you! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a possibility to save this feature layer (created from JSON) in ArcGIS geodatabase?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 22:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polyline-feature-layer-from-json/m-p/647275#M60308</guid>
      <dc:creator>AndrzejMilosz</dc:creator>
      <dc:date>2013-04-20T22:35:07Z</dc:date>
    </item>
  </channel>
</rss>

