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. This sample uses the open source Turf.js library to perform a spatial intersection calculation.