Select to view content in your preferred language

Definition Query is not working

3788
12
06-11-2010 06:16 AM
FaisalBukhari
Deactivated User
Hi

Definition query is not working no error nut map is not refresh

here is code

var dynLay:ArcGISDynamicMapServiceLayer = myMap.getLayer("Region") as ArcGISDynamicMapServiceLayer;

var layerDefArr:Array=new Array();

var qry:String= new String();
qry="OBJECTID=1";
layerDefArr[0] = qry;

dynLay.layerDefinitions = layerDefArr;

dynLay.refresh();


any idea   Thanks in Advance
Tags (2)
0 Kudos
12 Replies
RobertScheitlin__GISP
MVP Emeritus
David,

   Sorry I can't say I'm interested in developing such a specialized widget (to many other thing on my plate). As far as the CAD data if it is not georeferenced than does it even overlay with your data in the correct location?
0 Kudos
DavideRodomonti1
Deactivated User
David,

   Sorry I can't say I'm interested in developing such a specialized widget (to many other thing on my plate). As far as the CAD data if it is not georeferenced than does it even overlay with your data in the correct location?


I understand Robert...
Can I use it? http://forums.esri.com/thread.asp?c=158&f=2421&t=287068&m=892110
Thanks,
David
0 Kudos
DavideRodomonti1
Deactivated User
I understand Robert...
Can I use it? http://forums.esri.com/thread.asp?c=158&f=2421&t=287068&m=892110
Thanks,
David


I adapted this code and it works well..after the definition query I should use some function to zoom to the new layer extent.
David
0 Kudos