I wrote a TrackOverlay_TrackEnd event handler in the hope of saving the drawing of a shape into a shp file.
In order to create ShapeFile, I need to determine the Shape type based on
TrackEndedTrackInteractiveOverlayEventArgs
e
I tried :
if (e.GetType().Name.ToString().Equals("PolygonShape")) { ...};
to detect whether the shape drawn is a polygon, this doesn't seem working, because the block associated with the if statement is not executed even if the shape is a polygon. What API syntax should be used to achieve this purpose? I want to save all kinds of shapes available in MapSuite wpf Desktop 4.x. Thanks.
Franklin