Apparently starting around July 2016 you have to get a code to use Google Maps on your NEW phpVMS installation. I did that, but I have to refresh the page many times before the map shows up. I DO NOT have to do this on my old site that did not require the new code at this time. On that site the map shows up immediately when I click the menu link for the acars map.
Apparently starting around July 2016 you have to get a code to use Google Maps on your NEW phpVMS installation. I did that, but I have to refresh the page many times before the map shows up. I DO NOT have to do this on my old site that did not require the new code at this time. On that site the map shows up immediately when I click the menu link for the acars map.
Any ideas?
If you are referring the api, than you need to get a google map api(javascript) than add this yo your core_htmlhead.php file.
<script async defer src="https://maps.googleapis.com/maps/api/js?key=Y O U R A P I K E Y&callback=initMap"></script>
Yes the API key for maps. That’s exactly what I did! Got the api key and entered it in the core_htmlhead.php file like above. Otherwise it would not work at all correct? And it will not work unless I press the menu links several times or refresh the page several times.
phpVMS 5.5 and won’t work hardly at all on the default crystal skin!
Console errors:
Failed to load resource: the server responded with a status of 404 (Not Found)
Failed to load resource -> sound to me like a file is missing on your server. Check to see if it exists and if it is needed in your code, otherwise take it out.
ReferenceError: Can’t find variable: google
<– Could be what’s breaking it. Could you please paste your core_htmlhead and the <head> part of your layout.php so we can make sure everything has been entered correctly (as per flyalaska above). You’re welcome to hide the API Key.