This application shows how to compute the difference of two polygons. The first polygon is drawn on the map programmatically, and the second polygon is drawn by the user which is implemented using a Map Overlay to handle mouse events. The 'difference' operation is then performed (with the drawn polygon substracted from the original polygon) and the resulting graphic is shown on the map. This application uses the static method GeometryEngine.difference which returns the Geometry object resulting from the difference between two Geometry objects.
* This application shows how to compute the difference of two polygons.
* set up in polygon drawing mode.
* map overlay enabling the user to draw polygons.