Can you use the FeatureSource to add objects to this layer? I get a bunch of warnings when I use the InternalFeatures property to add/remove features from the layer so I decided to use the FeatureSource. Now anytime there is 1 feature or more already in the source the track shape does not show up while interactively tracking using the TrackMode.Rectangle/Circle but does show up when using TrackMode.Polygon. Is this a bug? Am I not doing something correctly? Should I just go back to using the InternalFeatures and ignore the errors?
Thanks for your post and questions and welcome you to ThinkGeo MapSuite Discussion forum.
We have removed the warnings for the InternalFeatures because it will have any effects for your resulting when showing maps.
When you doing the transaction, could you have a check on the transaction result to see if it is successful operation. TransactionResult result =layer.EditTools.CommitTransaction();
I don’t think there would be any difference if you call the CommitTransaction on the layer or on the feature source or on the layer.
Showing no failures on the CommitTransaction should be the expected case. I am a bit comfused with the problem you are encountering, could you send me a small sample application to recreate your problem?
2) I am not sure why you want to add the tracked shape in the TrackEnded event? We will do this automatically. You can try to remove this event by commenting it out. Do you have any special reason?
3) If you really want to do this operation, try to use Update instead of Add Feature, because the feature is already added automatically. wpfMap1.TrackOverlay.TrackShapeLayer.FeatureSource.UpdateFeature(e.TrackShape);