ThinkGeo.com    |     Documentation    |     Premium Support

Moving Feature to Edit, comes back without columns?

Hello, It's possible that I'm just doing this in a strange way and my thinking is messed up. Please let me know if that's the case.


I allow a user to create a polygon using track shapes. When they are through with the track shape, I gather some information from the user about the polygon they've defined and then I add the feature with some new columns (based on the input from the user) to a different layer and I clear the EditOverlay.EditLayer of all features. If the user then says that they want to edit the polygon, I move the feature back to the EditOverlay.EditLayer. (Do I need to do this? Is there a better way?)


(As an aside, when I do this, I refresh the map using Map.Refresh() but this doesn't refresh the Edit Overlay, I have to do that separately, is that intentional?)


After the user has modified the zone and specify that they are done, I want to move the zone back to my other layer and remove it from the edit layer, while keeping the original columns. What happens is that I get the feature from the edit layer and it doesn't have any columns of column values. I tested to ensure that the column values are there right as I'm adding it to the edit layer, but the feature I get back no longer has them.


Is there a different way I should be going about this problem? I can think of a work-around, but it doesn't seem as clean.


Thanks!


Kimberly



Kimberly,


You don’t need to clear all the features in EditOverlay before user starts to edit the shape. After you set property:


winformsMap1.EditOverlay.TrackMode = TrackMode.Edit;


user can select shape by clicking on the map to edit.


There is a known issue when call Map.Refresh() it doesn't refresh the EditOverlay. To avoid this issue you can call 


winformsMap1.RefreshEditOverlay(); 


refresh it manually.


We also noticed the column data is missing after user edits the shape; we will fix these bugs in the next version. Sorry for the inconvenience for now.


Thanks,

ThinkGeo Support