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 for some of the spatial calculation.