Jump to content

Recommended Posts

Posted

Hi all,

ive just started to mess around with PHPVMS again and updated my API with google etc... the thing is that when I go to my test site Http://www.flysx.org/test the map doesn’t load on start up but when I refresh the page it does...

its throwing up the error of “initmap is not a function” does anyone have any experience if this and/or a work around?

Thanks in advance

 

Scott

Posted
  On 7/28/2018 at 8:01 PM, drury211 said:

Hi all,

ive just started to mess around with PHPVMS again and updated my API with google etc... the thing is that when I go to my test site Http://www.flysx.org/test the map doesn’t load on start up but when I refresh the page it does...

its throwing up the error of “initmap is not a function” does anyone have any experience if this and/or a work around?

Thanks in advance

 

Scott

Expand  

Hello, try changing this line and see if it works.

<script a sync defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDULRUmBg6SusuQGJe35DNuNGlMNzdwYdo"></script>


<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDULRUmBg6SusuQGJe35DNuNGlMNzdwYdo&callback=initMap"
  type="text/javascript"></script>

 

 

Posted
  On 7/29/2018 at 10:51 AM, gio1961 said:

Hello, try changing this line and see if it works.

<script a sync defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDULRUmBg6SusuQGJe35DNuNGlMNzdwYdo"></script>


<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDULRUmBg6SusuQGJe35DNuNGlMNzdwYdo&callback=initMap"
  type="text/javascript"></script>

 

 

Expand  

You sir are a f@#king genius!

thank you!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...