How to disable the Google Maps API if its already added by another theme or plugin

If you are having map issues this is often because the Google Maps API has been loaded multiple times on your website. The Advanced Mapping extension loads the Google Maps on all pages as many will have a map.

If you are unable to disable the API in your theme or plugin you can disable the Google Maps API in  Advanced Mapping extension with the following function. Just place this into your theme functions file to disable 

// Dequeue the Google Maps API if you have a conflict with other theme or plugin 
function my_epl_google_map_dequeue_script() {
	wp_dequeue_script( 'epl-am-map-api' );
add_action( 'wp_enqueue_scripts', 'my_epl_google_map_dequeue_script', 100 );