POST
|
I am using ArcScripts http://arcscripts.esri.com/details.asp?dbid=16999 by Iain Campion to generate legend in JavaScript application. The application works well and it generates legend only once. All subsequent request simply response by sending old image URL. The directory in which it generates is cleaned by ArcGIS server process so the application displays legend Label with brocken image URL. I am using ArcServer 9.3.1 and for reason beyond my control can't upgrade. So question is can I change location where legend image is generated. By default it grabs Output directory of map service. Is there any way to force application to send request every time. Please let me know if I am missing anyting. Thanks, Komal
... View more
08-18-2011
09:19 AM
|
0
|
1
|
1931
|
POST
|
I am trying to identify data from multiple map service and then merge in single array for further processing. The identify task works but when defCntyTask.addCallback is executed response.length return Undefined and nothing executes further. I have tried to follow this post http://forums.esri.com/Thread.asp?c=158&f=2396&t=295896&mc=6#msgid924290 Can someone suggest how to correct this. Below is the code I used Thanks === var defCntyTask = new dojo.Deferred(); var defwellTask = new dojo.Deferred(); var defpropTask = new dojo.Deferred(); functon createMapParam(evt) { CntyParam.tolerance = 5; wellParam.tolerance = 5; propParam.tolerance = 5; CntyParam.returnGeometry = true; wellParam.returnGeometry = true; propParam.returnGeometry = true; CntyParam.layerIds = [2]; wellParam.layerIds = [5]; propParam.layerIds = [5]; CntyParam.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL; wellParam.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL; propParam.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL; map.graphics.clear(); CntyParam.geometry = evt.mapPoint; wellParam.geometry = evt.mapPoint; propParam.geometry = evt.mapPoint; CntyParam.mapExtent = map.extent; wellParam.mapExtent = map.extent; propParam.mapExtent = map.extent; } function mspIdTask(evt) { defCntyTask = cntyIdTask.execute(CntyParam); defwellTask = stnIdTask.execute(wellParam); defpropTask = stnIdTask.execute(propParam); defCntyTask.addCallback(function(response){console.log("Completed County Id task " + response.length);}); defwellTask.addCallback(function(response){console.log("Complete Well Id task " + response.length);}); defpropTask.addCallback(function(response){console.log("Complete Property Id task " + response.length);}); var defIdList = new dojo.DeferredList([defCntyTask,defwellTask,defpropTask]); var idTaskComplete = function() { Console.log("All Id task complete, Call merge results process "); } myDefIdList.addCallback(idTaskComplete); }
... View more
07-12-2011
09:29 AM
|
0
|
1
|
635
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|