I am trying to create a buffer to select features on a map, I want to have a text box, where user can put in distance in miles and when clicked on map, it creates a buffer around that point, with that distance and selects features within the buffer.
I have a codepen sample
https://codepen.io/Jodhpur1/pen/qBGVKdg
where a buffer is created when clicked on the map and features selected within that buffer, but the distance for the buffer is coded to 10 miles.
Thanks in advance for your help