<?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: Prevent rendering of a layer until time definition is applied in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-rendering-of-a-layer-until-time-definition/m-p/375984#M34904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran a quick test using some sample data and in my testing the time extent was applied to the layer query. Here's my test app. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/hokuwahapi/1/" title="http://jsbin.com/hokuwahapi/1/"&gt;Create a Map&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe try this test app with your data and see if it works? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 19:44:12 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2015-01-27T19:44:12Z</dc:date>
    <item>
      <title>Prevent rendering of a layer until time definition is applied</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-rendering-of-a-layer-until-time-definition/m-p/375983#M34903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I want to add layers to a map, with some criteria. Before the layer is drawn, I want to a set a time definition on the client-side to limit the data being rendered.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I've tried setting the time definition prior to calling map.addLayer, but the API seems to ignore the time definition when the layer is added to the map.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;So briefly:&lt;/P&gt;&lt;OL style="margin-bottom: 1em; margin-left: 30px; list-style-position: initial; list-style-image: initial; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;LI&gt;FeatureLayer object created (in SNAPSHOT mode)&lt;/LI&gt;&lt;LI&gt;setTimeDefinition called for FeatureLayer&lt;/LI&gt;&lt;LI&gt;FeatureLayer object added to map via addLayer.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;When 3 happens, a request is sent to the service but the time definition is not sent in the request.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;&lt;EM&gt;${service url}&lt;/EM&gt;&lt;/STRONG&gt;/query?f=json&amp;amp;where=1%3D1&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;as opposed to&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;STRONG&gt;&lt;EM&gt;${service url}&lt;/EM&gt;&lt;/STRONG&gt;/query?f=json&amp;amp;where=1%3D1&amp;amp;returnGeometry=true&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;outFields=*&amp;amp;outSR=102100&amp;amp;time=1422030483999%2C1422030484000&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Thoughts on what is happening? Is there another ordering I should try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-rendering-of-a-layer-until-time-definition/m-p/375983#M34903</guid>
      <dc:creator>StephenGregory</dc:creator>
      <dc:date>2015-01-27T16:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent rendering of a layer until time definition is applied</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-rendering-of-a-layer-until-time-definition/m-p/375984#M34904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran a quick test using some sample data and in my testing the time extent was applied to the layer query. Here's my test app. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/hokuwahapi/1/" title="http://jsbin.com/hokuwahapi/1/"&gt;Create a Map&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe try this test app with your data and see if it works? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-rendering-of-a-layer-until-time-definition/m-p/375984#M34904</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-01-27T19:44:12Z</dc:date>
    </item>
  </channel>
</rss>

