laptop and a wrench

Bug

IMapControl::CenterAt method changes the map scale.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM034193
SubmittedApril 11, 2008
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Program languageC#
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

Get the MapScale prior to the call to CenterAt and then set the MapScale back to that scale in the code after using CenterAt: private void button1_Click(object sender, EventArgs e) { try { double dX; double dY; //Modify these values as necessary, according to the data dX = -25793.07; dY = 498076.5; ESRI.ArcGIS.Geometry.IPoint centerPoint = new ESRI.ArcGIS.Geometry.PointClass(); centerPoint.PutCoords(dX, dY); double mapScale = axMapControl1.MapScale; axMapControl1.CenterAt(centerPoint); axMapControl1.MapScale = mapScale; } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message.ToString()); } }

Steps to Reproduce

Bug ID: NIM034193

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options