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
14 hours ago, 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

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
6 hours ago, 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>

 

 

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.

Loading...
×
×
  • Create New...