When trying to plot a project coordinate system on the web map I have been encountering a problem with the shape showing correctly. I am using Visual Studio 2008 C#.
Here is an example straight from my solution:
for (int j = 0; j < _ProjectList.GPSCoordinateList.Count; j++)
{
PointShape upperleftpoint = new PointShape(_ProjectList.GPSCoordinateList[j].WestLongitude, _ProjectList.GPSCoordinateList[j].NorthLatitude);
PointShape lowerrightpoint = new PointShape(_ProjectList.GPSCoordinateList[j].EastLongitude, _ProjectList.GPSCoordinateList[j].SouthLatitude);
RectangleShape rectShape = new RectangleShape(upperleftpoint, lowerrightpoint);
Map1.EditLayer.Features.Add(_ProjectList.SubdivCode + j, new Feature(rectShape, _ProjectList.ProjectID + "." + j));
Marker marker = new Marker(rectShape.GetCenterPoint());
}
Now, the values for a specific example coming in are: WestLongitude(-112.232190914766), NorthLatitude(33.6757), EastLongitude(-112.225855765649), SouthLatitude(33.6407743278834).
The Marker center point is X(-112.2290233402075), Y(33.6582371639417) and maps correctly, but the actual rectangle shape maps far off from the points gathered. It actually seems as if the shape layers move when zooming and get further away when zooming out.
Please..... Anyone with any suggestions????
Thanks in advance!