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);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.