Following code snippet from DetectGPS.cs was working fine with 10.0.0.0 version, when I added routing module to the project it upgraded the dll to 10.2.0.0 and the feature update on the MAP logic stopped working.
if I replace the dlls with old version V10.0.0.0 - same code works
no exceptions thrown - but NO UI is updating.
Do I need to handle this differently?
Feature feature1 = vehicleLayer.InternalFeatures[“GPSFeature1”];
PointShape pointShape = feature1.GetShape() as PointShape;
double lon = GPSlocations[index].X;
double lat = GPSlocations[index].Y;
pointShape.X = lon;
pointShape.Y = lat;
pointShape.Id = "GPSFeature1";
vehicleLayer.Open();
vehicleLayer.EditTools.BeginTransaction();
vehicleLayer.EditTools.Update(pointShape);
vehicleLayer.EditTools.CommitTransaction();
vehicleLayer.Close();
winformsMap1.Refresh(vehicleOverlay);