<?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: Turning on time-aware capability in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113478#M10577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cherry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Have to made the layer time aware in ArcMap ("Enable time on this layer" on the time tab in the layers properties dialog) before you published the map service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 12:32:32 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-10-13T12:32:32Z</dc:date>
    <item>
      <title>Turning on time-aware capability</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113477#M10576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a time slider from a dynamic Json url but it is not going too well. I parsed through the data and manually created a feature layer through the help of the following link: &lt;A href="https://developers.arcgis.com/javascript/jssamples/fl_featureCollection.html" title="https://developers.arcgis.com/javascript/jssamples/fl_featureCollection.html"&gt;Feature collection | ArcGIS API for JavaScript &lt;/A&gt; but can't seem to get any time information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a esriFieldTypeDate field in the layer definition, formatted the date in YYYYMMDDHHMMSS format and defined the feature layer as Featurelayer.MODE_SNAPSHOT. However when I was trying to access the feature layer's timeinfo properties, the console displayed the value as undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I access/enable the time attributes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 00:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113477#M10576</guid>
      <dc:creator>CherryChan</dc:creator>
      <dc:date>2015-10-13T00:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on time-aware capability</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113478#M10577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cherry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Have to made the layer time aware in ArcMap ("Enable time on this layer" on the time tab in the layers properties dialog) before you published the map service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 12:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113478#M10577</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-13T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on time-aware capability</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113479#M10578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a json feed from external party(&lt;A href="http://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&amp;amp;starttime=2015-09-16&amp;amp;minlatitude=-80&amp;amp;maxlatitude=-25&amp;amp;maxlongitude=0&amp;amp;minlongitude=-90&amp;amp;minmagnitude=5&amp;amp;orderby=time"&gt;http://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&amp;amp;starttime=2015-09-16&amp;amp;minlatitude=-80&amp;amp;maxlatitude=-25&amp;amp;maxlongitude=0&amp;amp;minlongitude=-90&amp;amp;minmagnitude=5&amp;amp;orderby=time&lt;/A&gt;) and the data needs to be dynamically updated, so I thought a map service does not have the capability to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to publish third party feeds as a map service while maintaining its dynamic properties?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113479#M10578</guid>
      <dc:creator>CherryChan</dc:creator>
      <dc:date>2015-10-13T21:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on time-aware capability</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113480#M10579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cherry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sorry I must have skipped reading where you were creating the layer based on a feature collection. So the Feature Collection does not have a time extent and that is why it is null. Juts adding an esriFieldTypeDate field does not make the data time aware or produce a time extent.&amp;nbsp; So you need to look at the docs for TimeExtent:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/timeextent-amd.html" title="https://developers.arcgis.com/javascript/jsapi/timeextent-amd.html"&gt;TimeExtent | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and FeatureLayer setTimeDefinition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#settimedefinition" title="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#settimedefinition"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript | setTimeDefinition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 21:20:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113480#M10579</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-13T21:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on time-aware capability</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113481#M10580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followed those steps and I'm making some progress. I have another question if you don't mind; when I invoke the featureLayer.setTimeDefinition(timeExtent);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the following message in the console log: &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="objectBox objectBox-text"&gt;FeatureLayer: layer created by value (from a feature collection) does not support definition expressions and time definitions. Layer id = myFeatureLayer&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="objectBox objectBox-text"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="objectBox objectBox-text"&gt;Before I set the time definition, I did set up the feature layer like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="objectBox objectBox-text"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;featureLayer = new FeatureLayer(featureCollection, {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; id: 'myFeatureLayer',&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; mode: FeatureLayer.MODE_SNAPSHOT, &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; outFields: ["*"]&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;});&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;var features = [];&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, does that mean time definition it is not supported?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 22:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113481#M10580</guid>
      <dc:creator>CherryChan</dc:creator>
      <dc:date>2015-10-13T22:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on time-aware capability</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113482#M10581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately yes that means it is not supported&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 01:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113482#M10581</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-14T01:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Turning on time-aware capability</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113483#M10582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, thanks for trying to help Robert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 23:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-on-time-aware-capability/m-p/113483#M10582</guid>
      <dc:creator>CherryChan</dc:creator>
      <dc:date>2015-10-14T23:17:42Z</dc:date>
    </item>
  </channel>
</rss>

