<?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 how to clean featurelayer local cached features in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-clean-featurelayer-local-cached-features/m-p/367647#M1753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS server 10 with Flex to display a very large point feature class on the web. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using featurelayer with definition query and cluster symbols. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The query and display works well for the first one or two operation. However, it is getting slower and slower to display the features on the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess even I removed the&amp;nbsp; unused featurelayer&amp;nbsp; from map, the features are still in the local browser's cache. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my question is how can I clear the featurelayer cached feature when the featurelayer is removed from the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i also turned off the cache option. flayer.disableClientCaching = true; and use the onDemand mode. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;querystring = "( STRIKEDATETIME between to_date('" + fromdate + "', 'YYYY-MM-DD HH24:MI:SS' ) AND to_date('" + todate + "', 'YYYY-MM-DD HH24:MI:SS' )) AND POLARITYIND LIKE '%" + polarity + "%'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.definitionExpression = querystring; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // flayer.id ="Lightning" + i.toString(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.name = "Lightning" + i.toString(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.mode = "onDemand"; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.outFields =[];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.disableClientCaching = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, from the map.layers, how can I know what is the type of the layer (e.g, i want to know if the layer is featurelayer or general dynamic map layer). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to generate a layer as output image on the server side and transfer the whole image to the client side?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much. I do have a lot of questions to deal with large set data over the internet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2012 02:09:32 GMT</pubDate>
    <dc:creator>HongTang</dc:creator>
    <dc:date>2012-06-07T02:09:32Z</dc:date>
    <item>
      <title>how to clean featurelayer local cached features</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-clean-featurelayer-local-cached-features/m-p/367647#M1753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS server 10 with Flex to display a very large point feature class on the web. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using featurelayer with definition query and cluster symbols. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The query and display works well for the first one or two operation. However, it is getting slower and slower to display the features on the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess even I removed the&amp;nbsp; unused featurelayer&amp;nbsp; from map, the features are still in the local browser's cache. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my question is how can I clear the featurelayer cached feature when the featurelayer is removed from the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i also turned off the cache option. flayer.disableClientCaching = true; and use the onDemand mode. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;querystring = "( STRIKEDATETIME between to_date('" + fromdate + "', 'YYYY-MM-DD HH24:MI:SS' ) AND to_date('" + todate + "', 'YYYY-MM-DD HH24:MI:SS' )) AND POLARITYIND LIKE '%" + polarity + "%'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.definitionExpression = querystring; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // flayer.id ="Lightning" + i.toString(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.name = "Lightning" + i.toString(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.mode = "onDemand"; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.outFields =[];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flayer.disableClientCaching = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, from the map.layers, how can I know what is the type of the layer (e.g, i want to know if the layer is featurelayer or general dynamic map layer). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there a way to generate a layer as output image on the server side and transfer the whole image to the client side?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much. I do have a lot of questions to deal with large set data over the internet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 02:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-clean-featurelayer-local-cached-features/m-p/367647#M1753</guid>
      <dc:creator>HongTang</dc:creator>
      <dc:date>2012-06-07T02:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to clean featurelayer local cached features</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-clean-featurelayer-local-cached-features/m-p/367648#M1754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So, my question is how can I clear the featurelayer cached feature when the featurelayer is removed from the map. &lt;BR /&gt;&lt;BR /&gt;i also turned off the cache option. flayer.disableClientCaching = true;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"disableClientCaching" is meant to "disable client caching" so this should work. From the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/FeatureLayer.html#disableClientCaching"&gt;&lt;SPAN style="text-decoration:underline;"&gt;FeatureLayer API Reference&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from being loaded from the browser's cache."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Can you use httpfox/fiddler/charles and see what http response you are getting for your request?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;is there a way to generate a layer as output image on the server side and transfer the whole image to the client side?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, using ArcGISDynamicMapServiceLayer will help with this.&amp;nbsp; The image gets created on the server instead of sending down all the features to the client.&amp;nbsp; Note that clustering only works with clientside features (featurelayer and graphicslayer), but not if the server is creating the image for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-clean-featurelayer-local-cached-features/m-p/367648#M1754</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2012-06-13T15:59:57Z</dc:date>
    </item>
  </channel>
</rss>

