Jump to content

Live Map Problem


coryb12

Recommended Posts

I know, this is kind of vague, but anyone know what my be causing this problem on our live map with the white backgrounds on the images on the live map (see picture below)....something about how it is shifted over because of the Latest Flights feed is what's causing the problem, but anyone know what my be cuasing it in the code?

live_map.jpg

Also, here is the header.tpl code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><?php echo $title; ?></title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta name="description" content="Virtual Airline" />
<meta name="keywords" content="virtual airline, flight simulator, fs9,fsx," />
<meta name="author" content="Your Name / Design by Fernbap - http://fernbap.com/" />
<link rel="stylesheet" type="text/css" href="<?php echo SITE_URL?>/lib/skins/clowdy/style.css" />
<?php
Template::Show('core_htmlhead.tpl');
?>
</head>
<body>
<div id="wrapper">
<?php
Template::Show('core_htmlreq.tpl');
?>

<div id="header">
</div>
<div id="menu">
	<ul>
		<li><?php
			Template::Show('core_navigation.tpl');
		?></li>
	</ul>
</div>

<div id="content">
	<div id="right">
	<h2 class="topright">New Pilots</h2>
	<div class="rightitem">
		<ul>
		<li><?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?></li>
		</ul>
	</div>
	<h2>Latest Flights</h2>
	<div class="announce">
		<p><?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?></p>
		</div>
	</div>
	<div id="bodytext"> </div>

acarsmap.tpl code:

<div id="main">
<script type="text/javascript">
var map_center_lat = "<?php echo Config::Get('MAP_CENTER_LAT'); ?>";
var map_center_lng = "<?php echo Config::Get('MAP_CENTER_LNG'); ?>";
var map_type = <?php echo Config::Get('MAP_TYPE'); ?>;
</script>
<script type="text/javascript" src="<?php echo SITE_URL?>/lib/js/acarsmap.js"></script>
<div class="mapcenter" align="center">
<div id="acarsmap" style="width:<?php echo  Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div>
<p style="width:<?php echo  Config::Get('MAP_WIDTH');?>;font-size: 10px; text-align: center;">The map and table automatically update. <span style="color:red;">Red</span> indicates pilot is on the ground. <span style="color:green;">Green</span> indicates in air. Click pilot name to view.</p>
</div>
<table border = "0" width="100%">
<thead>
<tr>
	<td><b>Pilot</b></td><td><b>Flight Number</b></td><td><b>Departure</b></td><td><b>Arrival</b></td><td><b>Status</b></td><td><b>Altitude</b></td><td><b>Speed</b></td><td><b>Distance/Time Remain</b></td>
</tr>
</thead>
<tbody id="pilotlist" ></tbody>
</table>
<!--for every page you make copy and paste this code exactly so the footer will align correctly!-->
</div>
<div class="leftbottom"></div>
</div>
<div id="clear"></div>

footer.tpl code:

<div id="footer">
	<p>Copyright © 2009 Your VA - All rights reserved | <a href="http://www.phpvms.net">PHPVMS</a> | <a href="http://www.fspaintshop.com">FsPaintshop</a> | Design by <a href="http://www.fernbap.com">Fernbap</a></p>
</div>
</div>
</body>
</html>

Link to comment
Share on other sites

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