I'm trying to make map center on certain Latitude/Longitude but Esri map control uses it's own X/Y coordinate system.
control.MapControl.PanTo(new MapPoint(control.MapCenter.Latitude, control.MapCenter.Longitude));
The method I use for conversion from lat/long(spatial reference 4326) to Esri coordinates (spatial reference 102100) is as follows:
// Create mappoint with lat/long coordinates var mapPoint = new MapPoint(long, lat); // Need to convert from Lat/Long to Esri var webMercator = new WebMercator(); var converted = (MapPoint) webMercator.FromGeographic(mapPoint);
Before doing the conversion step, you can also check the spatial reference of
mapPoint to see if it needs to be converted.