Conflicting google API using dburles google maps and luke madera autoform-googleplaces

I get the following message when I have both packages installed -

You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

Does anyone know a solution around this problem ?

I included the script tag on my layout docs

<head>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
    Shared Storage
</title>
</head>

if I remove the script tag, autoform-googleplaces stop working

Maybe consider using abdj:autoform-google-places-input instead of lukemadera:autoform-googleplace, since it has a dependency on dburles:google-maps (so you know they’ll work together without additional tweaking).

1 Like

Ah that’s a great tip ! thanks man ! I’ll give it a try

Thanks for the tip man, worked perfectly