Code: Select all
<script src="https://maps.googleapis.com/maps/api/js? key=YOUR_API_KEY&callback=initMap" async defer></script>
and
Code: Select all
<p:gmap center="41.381542, 2.122893" zoom="15" type="hybrid" style="width:600px;height:400px" />
So I search on google I replace & by & the line was
Code: Select all
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script>
reading on google I replace
Code: Select all
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async="async" defer></script>
reading on google I replace
Code: Select all
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async="async" defer="defer" ></script>
then I have this errors:
ReferenceError: google is not defined
uncaught exception: InvalidValueError: initMap is not a function
What I am doing wrong?