Jump to content

Recommended Posts

Posted

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.

Posted (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>

<?php
echo $MODULE_HEAD_INC;

Is this the wright file to have it in? or is there another place it should be?

Thanks for any help.

David
Oz Flyer
VA Manager msfairways.net

Edited by OzFlyer
  • 2 weeks later...
Posted

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???

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...