Thanks for the reply .. well i'll still a newbie in arcgis api so i might need a little more help .. my map wkid is 4326 102100
// lat,lng values var mp:MapPoint = new MapPoint(lat,lng); mp.SpatialReference = new SpatialReference(4326) //Set explicitly var mp2:MapPoint = (WebMercatorUtil.geographicToWebMercator(mp) as MapPoint); //I don't think this next line is necessary, if you look in the debugger I think you will see SpatialReference is already set - but not 100% sure mp2.spatialReference = new SpatialReference(102100);
// lat,lng values var mp:MapPoint = new MapPoint(lat,lng); var mp2:MapPoint = (WebMercatorUtil.geographicToWebMercator(mp) as MapPoint); mp2.spatialReference = new SpatialReference(102100);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.