**jany_ wrote:**
The "Map1" in my program is DotSpatial.Controls.Map. I assigned it to another DotSpatial.Controls.IMap
However, my code won't compile as CoordinateDialog is a type.
I instead modified the code as follows:
My next clarification is: does the textbox in the dialog accept decimal degree values? I entered the values for longitude(121.040808282859) and latitude (14.5285245261747) in this dialog and decimal degrees in the following URL: http://www.gps-coordinates.net/
But I got different locations. The one I entered in the URL landed on the intended landmass, while the dialog landed me way-off into the sea.
You can find ZoomToCoordinatesDialog inside DotSpatial.Controls and Map1 would be the DotSpatial.Controls.IMap you're using in your program.Thank you for your reply. I want to clarify something. In this snippet:
using (CoordinateDialog = new ZoomToCoordinatesDialog(Map1))
CoordinateDialog is DotSpatial.Plugins.ShapeEditor.CoordinateDialog?The "Map1" in my program is DotSpatial.Controls.Map. I assigned it to another DotSpatial.Controls.IMap
However, my code won't compile as CoordinateDialog is a type.
I instead modified the code as follows:
using (var a = new ZoomToCoordinatesDialog(Map1))
{
a.ShowDialog();
}
and the dialog is shown as intended. Though I'm not sure if this is the correct way of doing it.My next clarification is: does the textbox in the dialog accept decimal degree values? I entered the values for longitude(121.040808282859) and latitude (14.5285245261747) in this dialog and decimal degrees in the following URL: http://www.gps-coordinates.net/
But I got different locations. The one I entered in the URL landed on the intended landmass, while the dialog landed me way-off into the sea.