How can we Reset Google Map to Default Position?

Agile Store Locator has provided a control within Google Maps to reset your map (Zoom + Pan) to its original state which you have to set from the “ASL Settings”. The option is disabled by default but it can be enabled through the shortcode attribute which you can add to your Store Locator page. The attribute to reset Google Map is reset_button. The control appears when the map position or zoom is changed, so once the user clicks the control, it will reset the map to its original state and will disappear until the user changes it again. The complete shortcode to reset Google Maps is as follows:

image of reset map
[ASL_STORELOCATOR reset_button="1"]

How can we include an additional Reset Button? #

Agile Store Locator has bonded an event to all those buttons that have a CSS class asl-reset-btn , so if you want to include a reset button anywhere within the store locator widget, all you need is to create a button or an anchor tag and provide it the CSS class as given below.

<a class="asl-reset-btn btn">Reset Map</a>