Select to view content in your preferred language

outSpatialReference

793
1
05-24-2011 09:20 AM
RobertMyers
Deactivated User
Is it possible to enter the wkid of 102100 instead of {myMap.spatialReference} in the outSpatialReference for a query?

Code:  outSpatialReference="{myMap.spatialReference}" 

Wrong: outSpatialReference="102100" 

Thanks
Tags (2)
0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor
You want to create a new SpatialReference
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/SpatialReference.html

so it would look like
query.outSpatialReference = new com.esri.ags.SpatialRefence(102100);
0 Kudos