Help with R script for button

I have created a map which uses the GreatCircleDistance function to show only markers within a certain distance of the marked marker using the guide found at but I would like to inlclude a button similar to the Recenter button, except it would clear the center from the map, essentially resetting the map to the initial state before a center for the circle is selected.

Can anyone tell me what the script for this would be? I am not experiences in R script and havent found a way to do so.


(1) Answer