laptop and a wrench

Bug

IMapControl::CenterAt method changes the map scale.

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM034193
EingereichtApril 11, 2008
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.2
ProgrammspracheC#
StatusWill Not Be Addressed

Zusätzliche Informationen

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()); } }

Schritte zur Reproduzierung

Bug-ID: NIM034193

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln