Select data in drawn polygon area

This sample shows how to use the drawing tools to draw polygon areas on the map and select points that are within them.