logo

Agile Store Locator - Knowledge Base

Plugin's Map is Slow and Malfunctioning

Agile Store Locator is based on google maps scripts, in case if your website has more than one google maps script added on the page, the plugin's map will malfunction such as it may stop the Store Locator Search Address Typeahead feature, or the info-Window may appear in the wrong position, the map may slow down and so on. In all the cases the only issue which can make the plugin's map to work incorrectly is multiple inclusion of google maps script. You can confirm it by opening the Chrome Inspector by pressing F12 key in windows then click Console Tab.

Store Locator Plugin not working

Image of Chrome Inspector showing Multiple Inclusion of Google Maps Script

How to Fix the Problem?

Store Locator Plugin not working

Image of Chrome Inspector showing Multiple Inclusion of Google Maps Script

Fixing this problem can be tricky as you have to search in your active plugins and theme from where the google maps script is being injected, the best way to do it by disabling plugins one by one and check in your chrome console if the error disappears. When you deactivate the plugin and the error goes way that means the extra google maps script tag was injected by that plugin, now you can download that plugin using FTP Service and search for that google maps script and simply remove that line. If the error still appears when you disable all plugins other than agile store locator that means the script is included in your theme, you have to search your active theme and remove that script. In most cases its added in function.php file which may appear like this.

google maps enqueue script

Image of function.php showing google maps wp_enqueue_script

Remove the appear line will not break any functionality in your site as google maps script is already included in agile store locator that can also be used by other plugins that are using google maps api.