<?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: Time and FeatureLayers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268849#M24769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well yes, it works fine then - but that uses ArcGISDynamicMapServiceLayer rather than a FeatureLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jan 2011 14:17:54 GMT</pubDate>
    <dc:creator>MR</dc:creator>
    <dc:date>2011-01-14T14:17:54Z</dc:date>
    <item>
      <title>Time and FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268846#M24766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a FeatureLayer to map points stored in a SQL Database. When I edit my service to enable Time on the layer the FeatureLayer stops showing anything. I thought perhaps I needed to set a TimeExtent but still nothing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I need to do to get my FeatureLayer working again now that I have enabled Time on the service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var featureLayer = new esri.layers.FeatureLayer(http://intranet/ArcGIS/rest/services/LORD/MYSERVICE/MapServer/0",{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["NUMBER, GRID_TYPE"]
});
 
var timeExtent = new esri.TimeExtent();
timeExtent.startTime = new Date("1/1/1999 UTC");
timeExtent.endTime = new Date("12/31/2020 UTC");
featureLayer.setTimeDefinition(timeExtent);
 
map.addLayer(featureLayer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 11:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268846#M24766</guid>
      <dc:creator>MR</dc:creator>
      <dc:date>2011-01-07T11:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time and FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268847#M24767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt; &lt;BR /&gt;I am using a FeatureLayer to map points stored in a SQL Database. When I edit my service to enable Time on the layer the FeatureLayer stops showing anything. I thought perhaps I needed to set a TimeExtent but still nothing.&lt;BR /&gt; &lt;BR /&gt;What do I need to do to get my FeatureLayer working again now that I have enabled Time on the service?&lt;BR /&gt; &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureLayer = new esri.layers.FeatureLayer(http://intranet/ArcGIS/rest/services/LORD/MYSERVICE/MapServer/0",{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["NUMBER, GRID_TYPE"]
});
 
var timeExtent = new esri.TimeExtent();
timeExtent.startTime = new Date("1/1/1999 UTC");
timeExtent.endTime = new Date("12/31/2020 UTC");
featureLayer.setTimeDefinition(timeExtent);
 
map.addLayer(featureLayer);&lt;/PRE&gt; &lt;BR /&gt;Many thanks,&lt;BR /&gt; &lt;BR /&gt;Mark&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;o &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the same problem. Though i haven't setup a time enable service but i tend to think the cause may be you need to have regular Time Step Intervals between each feature. if your data has irregular time intervals then you will not see anying on the layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is why am asking if anyone knows how to deal with irregular time step intervals.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268847#M24767</guid>
      <dc:creator>EricKabuchanga</dc:creator>
      <dc:date>2021-12-11T13:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time and FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268848#M24768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mark - I took a look at your code on the other thread and it looks fine and works with sample service time enabled layers. If you view your service in the services directory and click the JavaScript link does the service display?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 14:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268848#M24768</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2011-01-14T14:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time and FeatureLayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268849#M24769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well yes, it works fine then - but that uses ArcGISDynamicMapServiceLayer rather than a FeatureLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 14:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/time-and-featurelayers/m-p/268849#M24769</guid>
      <dc:creator>MR</dc:creator>
      <dc:date>2011-01-14T14:17:54Z</dc:date>
    </item>
  </channel>
</rss>

