I am using ArcGIS server 10 with Flex to display a very large point feature class on the web.
I am using featurelayer with definition query and cluster symbols.
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.
I guess even I removed the unused featurelayer from map, the features are still in the local browser's cache.
So, my question is how can I clear the featurelayer cached feature when the featurelayer is removed from the map.
i also turned off the cache option. flayer.disableClientCaching = true; and use the onDemand mode.
here is the code:
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 + "%'"
flayer.definitionExpression = querystring;
// flayer.id ="Lightning" + i.toString();
flayer.name = "Lightning" + i.toString();
flayer.mode = "onDemand";
flayer.outFields =[];
flayer.disableClientCaching = true;
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).
is there a way to generate a layer as output image on the server side and transfer the whole image to the client side?
Thanks very much. I do have a lot of questions to deal with large set data over the internet.