# Map Feature update stopped working with V10.2.0.0, but the same is working in DetectGPS sample with v10.0.0.0

**URL:** <https://community.thinkgeo.com/t/map-feature-update-stopped-working-with-v10-2-0-0-but-the-same-is-working-in-detectgps-sample-with-v10-0-0-0/8729>\
**Category:** WinForms\
**Created:** [November 7, 2017, 9:08pm UTC](https://community.thinkgeo.com/t/map-feature-update-stopped-working-with-v10-2-0-0-but-the-same-is-working-in-detectgps-sample-with-v10-0-0-0/8729 "2017-11-07T21:08:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naren\_Asokaraju](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/ea666f/32.png) [@Naren\_Asokaraju](https://community.thinkgeo.com/u/Naren_Asokaraju)\
**Post date:** [November 7, 2017, 9:08pm UTC](https://community.thinkgeo.com/t/map-feature-update-stopped-working-with-v10-2-0-0-but-the-same-is-working-in-detectgps-sample-with-v10-0-0-0/8729/1 "2017-11-07T21:08:34Z")

</div>

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);
```

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 8, 2017, 5:06am UTC](https://community.thinkgeo.com/t/map-feature-update-stopped-working-with-v10-2-0-0-but-the-same-is-working-in-detectgps-sample-with-v10-0-0-0/8729/2 "2017-11-08T05:06:58Z")

</div>

Hi Naren,

Please just comment this line: pointShape.Id = “GPSFeature1”;

That’s because we fixed an issue in 10.2.

Regards,

Ethan

---

<div class="post-metadata">

**Author:** ![Naren\_Asokaraju](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/ea666f/32.png) [@Naren\_Asokaraju](https://community.thinkgeo.com/u/Naren_Asokaraju)\
**Post date:** [November 8, 2017, 3:12pm UTC](https://community.thinkgeo.com/t/map-feature-update-stopped-working-with-v10-2-0-0-but-the-same-is-working-in-detectgps-sample-with-v10-0-0-0/8729/3 "2017-11-08T15:12:13Z")

</div>

Hi Ethan,

After I commented looks like the ID is becoming GUID, so I had to change the

Feature feature1 = vehicleLayer.InternalFeatures[“GPSFeature1”];

to

Feature feature1 = vehicleLayer.InternalFeatures[0];

is there any other method available to get by feature name?

Thanks for your support.  
Naren

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 9, 2017, 2:31am UTC](https://community.thinkgeo.com/t/map-feature-update-stopped-working-with-v10-2-0-0-but-the-same-is-working-in-detectgps-sample-with-v10-0-0-0/8729/4 "2017-11-09T02:31:58Z")

</div>

Hi Naren,

Are you using InmemoryFeatureLayer or some other layer?

If you are using InmemoryFeatureLayer, you don’t need to change the vehicleLayer.InternalFeatures[“GPSFeature1”], the “GPSFeature1” here is not the pointShape.Id = “GPSFeature1”;. It’s the vehicleLayer.InternalFeatures.add(“GPSFeature1”, yourFeature).

Regards,

Ethan
