OzFlyer Posted February 22, 2018 Report Posted February 22, 2018 Hi There, After moving servers we now have a problem with the ADMIN side where there are no route maps being displayed. All that is displayed is a blank pop up window with "Route Map" in the top left. Any help please. David Oz Flyer. Quote
Thomasha Posted February 23, 2018 Report Posted February 23, 2018 Hi! it seems google API are missing... Quote
OzFlyer Posted February 25, 2018 Author Report Posted February 25, 2018 (edited) I already have the Google Map API key is in the "/core/templates/core_htmlhead.tpl" file.Form core_htmlhead.tpl: (Key replaced with "MY-API-KEY")<script type="text/javascript">var baseurl = "<?php echo SITE_URL;?>";var geourl = "<?php echo GEONAME_URL; ?>";</script><link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css')?>" /><meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING');?>" /><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script><script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY-API-KEY"></script><script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js');?>"></script><script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script><?phpecho $MODULE_HEAD_INC;Is this the wright file to have it in? or is there another place it should be?Thanks for any help.DavidOz FlyerVA Manager msfairways.net Edited February 25, 2018 by OzFlyer Quote
Thomasha Posted March 9, 2018 Report Posted March 9, 2018 script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY-API-KEY"></script> Maybe stupid Question... Is your code as above or have you entered the API code instead of the red marked script??? Quote
OzFlyer Posted March 10, 2018 Author Report Posted March 10, 2018 Yes I replaced the API key with "MY_API_KEY" for the post as per the comment in 2nd line of above post. Quote
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.