I\'m currently working on Rails app that is getting the following error:
You have included the Google Maps API multiple times on this page. This may ca
Instead of make it a regular
tag and add the following below your initMap function:
if(window.google){
initMap();
} else{
$.ajax('https://maps.googleapis.com/maps/api/js?signed_in=false&callback=initMap', {
crossDomain: true,
dataType: 'script'
});
}
If you aren't using jquery then just use XMLHttpRequest instead.