I'm following this sample for ADF libraries
http://edndoc.esri.com/arcobjects/9...sing/ee05ac98-384b-4dbe-b8e3-8d741180dc9a.htm
I'm practically drawing a circle around a point with a geoprocessing service. The radius is about 20 km.
The code is working fine, but the "Clear" routine isn't. Every time I clear the map from the previous data, the memory of the buffer service isn't cleared too and I get this
The code of the "Clear" routine is the same of the sample, but isn't working:
// Clears features from all graphics layers in the resource specified by _graphicsResourceNameprotected void ClearGraphics(){ // Retrieve the resource and clear its graphics dataset ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource graphicsMapResource = Map1.GetFunctionality(_graphicsResourceName).Resource as ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource; graphicsMapResource.Graphics.Clear();// This won't work tooGeoprocessingResourceManager1.GetResource(0).ClearState();// Refresh the resource and copy the map's callback results to the callback results collection so// the graphics are removed from the mapMap1.RefreshResource(graphicsMapResource.Name);_callbackResultCollection.CopyFrom(Map1.CallbackResults);}This should be simple but I can't figure out how to solve this.. the only solution I found is to restart the IIS server which is obviously very bad
Can someone please help me out?
أكثر...
http://edndoc.esri.com/arcobjects/9...sing/ee05ac98-384b-4dbe-b8e3-8d741180dc9a.htm
I'm practically drawing a circle around a point with a geoprocessing service. The radius is about 20 km.
The code is working fine, but the "Clear" routine isn't. Every time I clear the map from the previous data, the memory of the buffer service isn't cleared too and I get this

The code of the "Clear" routine is the same of the sample, but isn't working:
// Clears features from all graphics layers in the resource specified by _graphicsResourceNameprotected void ClearGraphics(){ // Retrieve the resource and clear its graphics dataset ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource graphicsMapResource = Map1.GetFunctionality(_graphicsResourceName).Resource as ESRI.ArcGIS.ADF.Web.DataSources.Graphics.MapResource; graphicsMapResource.Graphics.Clear();// This won't work tooGeoprocessingResourceManager1.GetResource(0).ClearState();// Refresh the resource and copy the map's callback results to the callback results collection so// the graphics are removed from the mapMap1.RefreshResource(graphicsMapResource.Name);_callbackResultCollection.CopyFrom(Map1.CallbackResults);}This should be simple but I can't figure out how to solve this.. the only solution I found is to restart the IIS server which is obviously very bad
Can someone please help me out?
أكثر...