Marker positions are spot on in the highest zoom level but is way off as you zoom out. I have attached pics of this.
This is the code adding the marker:
Proj4Projection proj4 = new Proj4Projection();
proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
proj4.Open();
string assetIcon = string.Empty;
SimpleMarkerOverlay markerOverlay = (SimpleMarkerOverlay)Map1.CustomOverlays["MarkerOverlay"];
foreach (EventReport eventReport in latestDeviceEvents)
{
assetIcon = GetAssetIcon(eventReport);
double lat = Utilities.Conversion.MSecToDegrees(eventReport.Latitude);
double lng = Utilities.Conversion.MSecToDegrees(eventReport.Longitude);
PointShape position = new PointShape(lng, lat);
PointShape projectedPosition = proj4.ConvertToExternalProjection(position) as PointShape;
WebImage webImage = new WebImage(assetIcon, 44, 44, 22, 22);
webImage.Text = eventReport.AssetName;
//webImage.TextOffsetX = 22.0f;
//webImage.TextOffsetY = -50.0f;
webImage.TextBackgroundColor = GeoColor.StandardColors.White;
Marker projectedMarker = new Marker(projectedPosition, webImage);
projectedMarker.Id = eventReport.AssetId.ToString() ;
markerOverlay.Markers.Add(projectedMarker);
}
proj4.Close();