Google Maps are not showing with domainname.com

后端 未结 2 1768
眼角桃花
眼角桃花 2020-12-22 08:43

JavaScript:




        
相关标签:
2条回答
  • 2020-12-22 09:18

    *.comprettainsurance.com/* does not match http://comprettainsurance.com/contactus (it matches any subdomain of comprettainsurance.com, but not the domain itself).

    You need to add an additional referrer line:

    comprettainsurance.com/*
    
    0 讨论(0)
  • 2020-12-22 09:34

    Use simple like this this worked for me everywhere

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?key=key&libraries=places,drawing,geometry"></script>
    

    when you use defer the script will be loaded when the document is closed- the content has been loaded. Furthermore external deffered scripts will be parsed after inline defferred scripts.

    0 讨论(0)
提交回复
热议问题