c# - ESRI Map control PanTo -


I am trying to create a map center on some latitude / longitude, but the Aryan Map controls its own X / Y coordinate system uses it.

  Control. MachinControl.Panto (new mappoint (control mapceter.latidad, control.mepCenter.length));  

This code does not work. Is there any "conversion" routine to exit Metpaul Lat / Lon or what should I do?

The method which I use in the Esri coordinates (local reference 102100) from LIT / Long (local reference 4326) , Is as follows:

  // Map with latitude / long coordinate var mappoints = new mappoint (long, latitude); // Lat / Long to Esri var webMercator = New WebMercator () is required to be converted; Var changed = (mappoint) webMercator.FromGeographic (mapPoint);  

Before you make a conversion step, you can check the spatial reference of mapPoint to see if it needs to be changed.


Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -