George,
Do you have the ability to amend the source code? If so the fix you require to add an excel spreadsheet in decimal degrees to a web Mercator application is as follows:
Add the following import statement:
import com.esri.ags.utils.WebMercatorUtil;
Change the gmapPoint variable as illustrated below:
var long:Number = Number(tempData.getItemAt(i)[longNumb].value);
var lat:Number = Number(tempData.getItemAt(i)[latNumb].value);
// var gmapPoint:MapPoint = new MapPoint(long,lat,new SpatialReference(4326));
var gmapPoint:MapPoint = new MapPoint(long,lat);
gmapPoint = WebMercatorUtil.geographicToWebMercator(gmapPoint) as MapPoint;
Regards
Anthony
Hi Anthony,
Decided to update my version of the AddExcel widget into FV3.1 but now it is not able to find a couple imports.
Says these imports are "not found". I'm using the api build 12/12/12 is there a newer one that I am missing, or does one need to find these imports elsewhere?
Thanks,
R_
HI.............can anyone help me to remove these errors as ags class package is not given in dowloadable link on esri site.....from where i can get these two packages
reply plz
Ayesha,
Those packages will be in the API download not the viewer download, the download should come with the instructions of how to add the packages to the viewer, you will need the same version of the API to the viewer you are using:
ArcGIS API for Flex | ArcGIS for Developers
regards
Anthony