drury211 Posted July 28, 2018 Report Share Posted July 28, 2018 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 Quote Link to comment Share on other sites More sharing options...
gio1961 Posted July 29, 2018 Report Share Posted July 29, 2018 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> Quote Link to comment Share on other sites More sharing options...
drury211 Posted July 29, 2018 Author Report Share Posted July 29, 2018 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!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.