# AcarsMap

**URL:** <https://forum.phpvms.net/t/acarsmap/2480>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [April 21, 2010, 11:03pm UTC](https://forum.phpvms.net/t/acarsmap/2480 "2010-04-21T23:03:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Fernandez](https://forum.phpvms.net/user_avatar/forum.phpvms.net/gabriel_fernandez/32/51_2.png) [@Gabriel\_Fernandez](https://forum.phpvms.net/u/Gabriel_Fernandez)\
**Post date:** [April 21, 2010, 11:03pm UTC](https://forum.phpvms.net/t/acarsmap/2480/1 "2010-04-21T23:03:12Z")

</div>

Hello, me again .

After Update my acars map dont’show online flights, almost all of my pilots using fsacars, the new version have suport for fsacars?

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [April 21, 2010, 11:13pm UTC](https://forum.phpvms.net/t/acarsmap/2480/2 "2010-04-21T23:13:55Z")

</div>

There is still FSACARS support - make sure you update your templates first, or use the stock templates. There were huge changes to the ACARS templates

---

<div class="post-metadata">

**Author:** ![Gabriel\_Fernandez](https://forum.phpvms.net/user_avatar/forum.phpvms.net/gabriel_fernandez/32/51_2.png) [@Gabriel\_Fernandez](https://forum.phpvms.net/u/Gabriel_Fernandez)\
**Post date:** [April 21, 2010, 11:32pm UTC](https://forum.phpvms.net/t/acarsmap/2480/3 "2010-04-21T23:32:35Z")

</div>

Well, i change the templete for crystal, bat still not show the online flights on acarsmap

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [April 21, 2010, 11:38pm UTC](https://forum.phpvms.net/t/acarsmap/2480/4 "2010-04-21T23:38:13Z")

</div>

Link?

---

<div class="post-metadata">

**Author:** ![Gabriel\_Fernandez](https://forum.phpvms.net/user_avatar/forum.phpvms.net/gabriel_fernandez/32/51_2.png) [@Gabriel\_Fernandez](https://forum.phpvms.net/u/Gabriel_Fernandez)\
**Post date:** [April 21, 2010, 11:40pm UTC](https://forum.phpvms.net/t/acarsmap/2480/5 "2010-04-21T23:40:15Z")

</div>

[http://absacargovirtual.freetzi.com/index.php/acars](http://absacargovirtual.freetzi.com/index.php/acars) or front page, i flying now - sbkp-kmia

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [April 22, 2010, 12:03am UTC](https://forum.phpvms.net/t/acarsmap/2480/6 "2010-04-22T00:03:49Z")

</div>

Strange, is it on the stock template?

---

<div class="post-metadata">

**Author:** ![Gabriel\_Fernandez](https://forum.phpvms.net/user_avatar/forum.phpvms.net/gabriel_fernandez/32/51_2.png) [@Gabriel\_Fernandez](https://forum.phpvms.net/u/Gabriel_Fernandez)\
**Post date:** [April 22, 2010, 12:14am UTC](https://forum.phpvms.net/t/acarsmap/2480/7 "2010-04-22T00:14:59Z")

</div>

not, it is the ObsessBlue skin, but in the crystal no have changes

---

<div class="post-metadata">

**Author:** ![MrAmsterdam](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mramsterdam/32/20_2.png) [@MrAmsterdam](https://forum.phpvms.net/u/MrAmsterdam)\
**Post date:** [April 24, 2010, 6:22pm UTC](https://forum.phpvms.net/t/acarsmap/2480/8 "2010-04-24T18:22:17Z")

</div>

I seem to have the same problem…

[www.serious-airlines.com](http://www.serious-airlines.com)

I am flying right now, nothing happens though…

I use kAcars… it used to work fine… since the last update i dont see anything when i fly

I am using the obsess blue skin

Regards.

Lucas

---

<div class="post-metadata">

**Author:** ![enti342](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/e/c0e974/32.png) [@enti342](https://forum.phpvms.net/u/enti342)\
**Post date:** [April 27, 2010, 1:48am UTC](https://forum.phpvms.net/t/acarsmap/2480/9 "2010-04-27T01:48:32Z")

</div>

Having the same issue with the Obsess2 Skin

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [April 27, 2010, 2:16am UTC](https://forum.phpvms.net/t/acarsmap/2480/10 "2010-04-27T02:16:00Z")

</div>

Sounds like a problem in the skin then…

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [April 27, 2010, 9:52am UTC](https://forum.phpvms.net/t/acarsmap/2480/11 "2010-04-27T09:52:07Z")

</div>

I have that skin and its fine, try this code,

```
<div class="mcright">
<?php 
/**
* These are some options for the ACARS map, you can change here
* 
* By default, the zoom level and center are ignored, and the map 
* will try to fit the all the flights in. If you want to manually set
* the zoom level and center, set "autozoom" to false.
* 
* You can use these MapTypeId's:
* http://code.google.com/apis/maps/documentation/v3/reference.html#MapTypeId
* 
* Change the "TERRAIN" to the "Constant" listed there - they are case-sensitive
* 
* Also, how to style the acars pilot list table. You can use these style selectors:
* 
* table.acarsmap { }
* table.acarsmap thead { }
* table.acarsmap tbody { }
* table.acarsmap tbody tr.even { }
* table.acarsmap tbody tr.odd { } 
*/
?>
<script type="text/javascript">
<?php 
/* These are the settings for the Google map. You can see the
Google API reference if you want to add more options.

There's two options I've added:

autozoom: This will automatically center in on/zoom 
  so all your current flights are visible. If false,
  then the zoom and center you specify will be used instead

refreshTime: Time, in seconds * 1000 to refresh the map.
  The default is 10000 (10 seconds)
*/
?>
var acars_map_defaults = {
autozoom: true,
zoom: 4,
   center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"),
   mapTypeId: google.maps.MapTypeId.TERRAIN,
   refreshTime: 10000
};
</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>
</div>
<?php
/* See below for details and columns you can use in this table */
?>
<table border = "1" width="100%" class="acarsmap">
<thead>
<tr>
	<th><b>Pilot</b></th>
	<th><b>Flight #</b></th>
	<th><b>Departure</b></th>
	<th><b>Arrival</b></th>
	<th><b>Status</b></th>
	<th><b>Altitude</b></th>
	<th><b>Speed</b></th>
	<th><b>Distance/Time Remain</b></th>
</tr>
</thead>
<tbody id="pilotlist"></tbody>
</table>
<script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js');?>"></script>
<?php
/* This is the template which is used in the table above, for each row. 
Be careful modifying it. You can simply add/remove columns, combine 
columns too. Keep each "section" (<%=...%>) intact

Variables you can use (what they are is pretty obvious)

Variable: Notes:
<%=flight.pilotid%>
<%=flight.firstname%>
<%=flight.lastname%>
<%=flight.pilotname%> First and last combined
<%=flight.flightnum%>
<%=flight.depapt%> Gives the airport name
<%=flight.depicao%>
<%=flight.arrapt%> Gives the airport name
<%=flight.arricao%>
<%=flight.phasedetail%>
<%=flight.heading%>
<%=flight.alt%>
<%=flight.gs%>
<%=flight.disremaining%>
<%=flight.timeremaning%>
<%=flight.aircraft%> Gives the registration
<%=flight.aircraftname%> Gives the full name
<%=flight.client%> FSACARS/Xacars/FSFK, etc
<%=flight.trclass%> "even" or "odd"

You can also use logic in the templating, if you so choose:
http://ejohn.org/blog/javascript-micro-templating/
*/
?>
<script type="text/html" id="acars_map_row">
<tr class="<%=flight.trclass%>">
<td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td>
<td><%=flight.flightnum%></td>
<td><%=flight.depicao%></td>
<td><%=flight.arricao%></td>
<td><%=flight.phasedetail%></td>
<td><%=flight.alt%></td>
<td><%=flight.gs%></td>
<td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td>
</tr>
</script>

<?php
/*	This is the template for the little map bubble which pops up when you click on a flight
Same principle as above, keep the <%=...%> tags intact. The same variables are available
to use here as are available above.
*/
?>
<script type="text/html" id="acars_map_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a><br />
<strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br />
<strong>Status: </strong><%=flight.phasedetail%><br />
<strong>Dist/Time Remain: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br />
</span>
</script>

<?php
/*	This is a small template for information about a navpoint popup 

Variables available:

<%=nav.title%>
<%=nav.name%>
<%=nav.freq%>
<%=nav.lat%>
<%=nav.lng%>
<%=nav.type%>	2=NDB 3=VOR 4=DME 5=FIX 6=TRACK
*/
?>
<script type="text/html" id="navpoint_bubble">
<span style="font-size: 10px; text-align:left; width: 100%" align="left">
<strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br />
<strong>Type: </strong>
<?php	/* Show the type of point */ ?>
<% if(nav.type == 2) { %> NDB <% } %>
<% if(nav.type == 3) { %> VOR <% } %>
<% if(nav.type == 4) { %> DME <% } %>
<% if(nav.type == 5) { %> FIX <% } %>
<% if(nav.type == 6) { %> TRACK <% } %>
<br />
<?php	/* Only show frequency if it's not a 0*/ ?>
<% if(nav.freq != 0) { %>
<strong>Frequency: </strong><%=nav.freq%>
<% } %>
</span>
</script>
       </div>
	</div>

```

If its not that then its a setting on your server.
