Jump to content

skylineVirtual

Members
  • Posts

    59
  • Joined

  • Last visited

  • Days Won

    1

skylineVirtual last won the day on May 17 2019

skylineVirtual had the most liked content!

1 Follower

Profile Information

  • Gender
    Not Telling
  • Location
    Germany

Recent Profile Visitors

3171 profile views

skylineVirtual's Achievements

Newbie

Newbie (1/14)

16

Reputation

  1. Hi guys, I have a question on the live map today. We have added a way to display the true flight path of a pilot on our live map. here http://web.skyline-va.de/live Once you click on a plane in inflight, everything is as it should be for a few moments and you can see the true flight path (green) of the pilot as well as a line plotted from the current position to the arrival airport (white) and another one from departure to arrival (red, the default one). Now as soon as you wait for one or two minutes the data get's updated a few times and only the plane moves on, leaving you with an old flightpath and a new position of the plane icon. As this doesn't look very nice I would love to have the flightpath update with the plane. The code required for this feature is all inside the populateMap(data) function inside this tag: google.maps.event.addListener(flightMarkers[flightMarkers.length - 1], 'click', function() The solution would probably be to somehow simulate a click on the selected plane when the data refreshes. Does someone know how to do this? Or is there another way of achieving this result? Thanks in advance! Lauritz
  2. Looks really nice! We are thinking about ordering a cAcars Advanced Tracker but there is one question. Would it be possible to remove some of the features and change them with others as we don't need the Position Tracking because we solved this with our own module and swap this with the Cityscape Layout for example? That would be great!
  3. Or you can use this script here: http://forum.phpvms.net/topic/19785-livemap-and-inair/#entry105167 to make the 360 different images
  4. Hello, I've been searching for a way to solve this problem a while now. We have a custom style acarsmap, which doesn't contain any terrain or satellite data. So if there is only one pilot flying the autozoom zooms in there and you only see the icon and gray surface, which isn't very helpful unless you scroll out. Is there a way to reduce the zoom level so you know immediately what's around that plane? Thanks in advance!
  5. Try to use: <?php echo round(Auth::$userinfo->totally, 2); ?>
  6. Hello, I thought I'd take some time to introduce our small virtual airline here in the forums. Since November 2012 we operate a fleet of Boeing 737-800, Boeing 737-700 and later on when we were ready steadily increased our variety of aircraft types to meanwhile Airbus Boeing 737-800, Boeing 737-700, A320-200, Airbus A330-300, Dash 8Q-400 and Boeing 777-200LR. We mainly operate holiday and business schedules throughout Europe but recently expanded our network to operate flights to American, Asian and other parts of the world. With our subsidiary sky GO! flying with a fleet of B737s we are home to a low-cost carrier fleet as well providing a perfect mix while still following our aim and motto to simulated as realistically as possible without losing the fun. Here no one is forced to fly specific aircraft types before acquiring a higher typerating later on, everyone is welcome to join in if he can contribute a minimum of two flights a month, that's all we ask for. Since the launch we have constantly tried to improve our system and website and now feature a modern website accompanied by our system skylink., which was introduced in last October and is based on phpVMS with lots of modifications, as our whole User Interface is custom coded and includes OFP's, charters, a flightplan suggestion form etc. Here are some images of our livery: If you would like to know what the layout of our system looks like then you can have a look here: http://skyline-va.de/pic/ofp/pic.php So if you know a little German and are interested in flying through Europe and eventually the world in blue and white airplanes you are more than welcome to stop by and have a look. skyline-va.de forum.skyline-va.de
  7. Glad to hear you got it working But please do us a favor if you plan on creating a custom inair icon don't use the one we created. I came across this once or twice now. If you have created your own image then just ignore this
  8. I don't know if this would be possible but it would maybe work if VA owners were able to add registered users on simBrief to a VA account or something along with their pilotid so when the request gets sent by the VA Website it checks if this pilot is part of the airline and then uses his Airac to generate the briefing. If the API can't find the pilot to be matching with the database entries it opens up the login window so non VA projects can still use it the other way. Just a thought, the way it is right now is OK with us but this would be my suggestion how you could maybe solve this. People obviously would still need a simBrief account but wouldn't have to log in.
  9. It doesn't only look very nice, it is very nice The fact that every member has to be registered isn't to bad - many VAPilots already have a simBrief account so we figured out this wouldn't really be a big deal. The possibilities you get are great. We were able to modify and improve our briefing to a high realism level in only two days. The pilots get realistic fuel calculations, route and weather information as well as maps and downloads in not time. And you are free to design this however you want. As an example, screenshots of our briefing page: http://skyline-va.de/pic/ofp/pic.php
  10. Try to use data.flightnum.substring(0,3); instead of data.code
  11. Try to use data.flightnum.substring(0,3); instead of data.code I couldn't check it if it works as I'm on the phone at the moment but using substring should work
  12. Do you have your inair pictures sorted the way this piece of code needs to have it? In your case you would need two folders in your lib/images/inair folder. One would be VLI and the other FEV. Your icons need to go in there.
  13. I can't even access your website. But by the way: There is one thing missing in these instructions. After you have followed the steps I mentioned above you have to use this else command for the one in line 74 of the index.php (phpvms root folder): else { # It's a template sammich! if (strpos($page_content,'html { height: 100% } body { height: 100%; margin: 0; padding: 0 }') !== false) { $BaseTemplate->ShowTemplate('header2.tpl'); echo $page_content; } else { $BaseTemplate->ShowTemplate('header.tpl'); echo $page_content; $BaseTemplate->ShowTemplate('footer.tpl'); } } Then you should get a fullscreen live map. Happy Christmas!
  14. PM'd you, I've probably found the solution now
  15. Ok, I've coded the full screen module for you Put this in your ACARS.php Module: public function viewmapbig() { $this->set('acarsdata', ACARSData::GetACARSData()); $this->render('acarsmapbig.tpl'); } Then you have to create a new template file in your "phpvms/lib/skins/YOURSKINFOLDER/" folder named acarsmapbig.tpl which contains the following stuff: <head> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } </style> </head> <?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) */ ?> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=weather&sensor=false"> </script> <script type="text/javascript"> var acars_map_defaults = { autozoom: false, 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.SATELLITE, refreshTime: 10000 }; </script> <div id="acarsmap" style="margin: 0; width: 100%; height: 100%; position: absolute;"></div> </div> <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" <%=flight.realid%> <%=flight.percomplete%> <%=flight.onlineimage%> 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 height="10px" class="<%=flight.trclass%>"> </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"> <b><%=flight.pilotid%> - <%=flight.pilotname%></b><br /> <strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br /> <strong>Aircraft: </strong><%=flight.aircraftname%><br /> <strong>Status: </strong><%=flight.phasedetail%><br /> <strong>Dist/Time Remain: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br /> </span> </script> The map should be accessible with a link looking like this: http://www.YOURLINK/YOURPHPVMSFOLDER/index.php/acars/viewmapbig or if you have installed phpvms into your root folder http://www.YOURLINK/index.php/acars/viewmapbig You will only have to put a normal button or link to your default livemap linking to the fullscreen one. I have a live demo here if you want to check it out: http://skyline-va.de/phpvms/index.php/acars/viewmapbig Hope this helps
×
×
  • Create New...