I have an issue that I beleive has to do with the TrackShapeFinished event. Basically I have an overlay and layer that contains some features. You can click on an existing feature to edit it or you can create new features using buttons very similar to the draw & edit shapes sample page. I have created an example of the problem I am seeing using the draw and edit shapes page. It is attached as draweditshapes.aspx.zip.
This does not include all of what I am doing, but you will see some strange results and I thought you shoudl see this. Create a few new shapes and save them. Then click on a shape to edit it. Click the shape again to actually move and resize. While the shape is in edit/track mode (moveable, rotatable), save again. Then create more shapes and try saving again. The edited shapes will not save to green and a few seconds after saving, all the featires dissapear.
This is not exactly what I am seeing, but I wanted to point out this issue. I am also using the trackshapefinished event to check for existing features in the editoverlay, then remove these (and warn the user, which is not included) and allow editing of just the one fetaure at a time. This is demonstrated in draweditshapes(2).zip. For this example, please create a new shape and save it. Then create another new shape and save again. You will have 2 green shapes. Then click one to edit it. It will move the featire from the cboverlay to the editoverlay as intended. Click the chape again to edit/move the shape. Then click save again. On the first click, the btnupdate postback code is not executed. The TrackShapeFinished is executed, but if you look at the cblayer at the beginning of this sub there are no features in it. Then a few seconds after this, they go away on the map. Please let me know how to get through this ASAP. I have wasted a lot of time already trying to figure it out.
Thanks
1891-DrawEditShapes.aspx.zip (3.49 KB)
1892-DrawEditShapes.aspx_(2).zip (3.56 KB)