Hi guys,
I have a box selection tool in my map that allows a user to draw a rectangle in the map to select one or many polygons from a shapefile layer. I use the EditOverlay.TrackMode set to TrackMode.Rectangle and then I handle the TrackShapeFinished to query the polygons touching the drawn rectangle. Everything works very well so far but i've noticed that the Map does not respond to mouse click when in TrackMode.Rectangle mode (Map_Click and Map_TrackShapeFinished are not fired by mouse click).
Is there a way to make both rectangle and click selection work without switching the EditOverlay.TrackMode property? So the user could either draw a rectangle to make a selection or just point and click a specific polygon.
Is there a validation of what's been drawn before you fire the TrackShapeFinished event?
Thank you,
Marc