Jump to content

vFleetTracker_v1.3


Kyle
Message added by Kyle

WARNING: This module is no longer supported from the developer as the developer is shifting their focus on phpVMS v4 Addons.

Recommended Posts

  • 3 months later...

Looking great! Thanks!!

I think the zoom is a little too close. I tried to adjust it to say 20 instead of 3, but nothing happens. Is there anyway to zoom a little less close to the ground?

In my case i'm centered in Europe, so want to overview Europe so i can see where it is located.

I tried to add without any luck

var options = {

autozoom: false,

zoom: 20,

center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"),

mapTypeId: google.maps.MapTypeId.HYBRID

}

Link to comment
Share on other sites

Thanks Kyle, that map is looking good.

Only issue I have is that it is showing only 3 of my 4 aircrafts. Any idea?

(Figured it out) The last flight was PIREP with an aircraft I edited from B707 to B721. This way the program was not able to match the PIREP into the map. I made a new flight with this aircraft to another airport and it is now listed :)

Edited by Edwin
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Good afternoon everyone, I've just upgraded from VFleetTracker 1.1 to 1.3, I love the map showing all the aircraft locations, however I have one niggle with it, at the moment it shows all my aircraft regardless of whether they are active or not, How do I get the map to show only the positions of my active aircraft like the list below it on the same page? any help would be much appreciated. Kind regards, Karl

Link to comment
Share on other sites

  • 2 weeks later...

Good afternoon everyone, I've just upgraded from VFleetTracker 1.1 to 1.3, I love the map showing all the aircraft locations, however I have one niggle with it, at the moment it shows all my aircraft regardless of whether they are active or not, How do I get the map to show only the positions of my active aircraft like the list below it on the same page? any help would be much appreciated. Kind regards, Karl

Same question

Has anyone noticed that the aircraft total hr is different from the hrs in the admin panel? Hrs are inserted in format 2.3 = 2 hrs 30 mins, but the system module seems to count it as 2 3/10 hrs so the total hrs are less than they should.

Best Regards,

Link to comment
Share on other sites

  • 2 weeks later...

for see more planes to the same location I use this

https://github.com/jawj/OverlappingMarkerSpiderfier

demo: https://github.com/jawj/OverlappingMarkerSpiderfier/blob/gh-pages/demo.html

to my VA http://www.skydream-airlines.com/index.php/vFleetTracker

Hope it's can help you to solve the problem

Regards Fred

Edited by FSX30HD
UPDATE URL WEBSITE
Link to comment
Share on other sites

  • 2 weeks later...
  • Moderators

hi kyle,

i have a problem with your add on if you look at this adress:

http://www.france-me.../vFleetTracker/

you ll see the module is out of the box. i tried a lot of solution, nothing works. and it only happen with this module.

please help!!!

thank's jean jacques

Can you specify what is out of the box, the module seems to be fine inside of your webpage. Are you talking about the maps of the aircraft locations?

Link to comment
Share on other sites

hi kyle,

i have a problem with your add on if you look at this adress:

http://www.france-me.../vFleetTracker/

you ll see the module is out of the box. i tried a lot of solution, nothing works. and it only happen with this module.

please help!!!

thank's jean jacques

Bonjour Jean-Jacques,

Changes ceci dans ton code

<div id="currentlocation" style="width: 960px; height: 520px;"></div>

<div id="currentlocation" style="width: 560px; height: 520px;"></div>

et diminue la valeur width.

Cordialement

Hello Jean-Jacques

I see your code make a change here:

<div id="currentlocation" style="width: 960px; height: 520px;"></div>

<div id="currentlocation" style="width: 560px; height: 520px;"></div>

For Now I'm not at home but I give you complete code for my VfleetTracker

Regards Fred

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

My result code

<!-- Debug: LFBO / EDDM -->
var pointer_1 = new google.maps.LatLng(48.3538, 11.7861);
icon = "/lib/images/SDA/0.png"
textmarker[textmarker.length] = new google.maps.Marker({
 position: pointer_1,
 map: map,
   icon: new google.maps.MarkerImage(
    "http://chart.googleapis.com/chart?chst=d_text_outline&chld=fffd00|12|h|000000|b|EDDM",
  null, null, new google.maps.Point(21, 21)),
  zIndex : 999
 //title: "",
});
point_1 = new google.maps.Marker({
//'zIndex' : 1,
position: pointer_1,
icon: icon,
map: map,
title: "SDA-7379-1 is at Franz Josef Strauss International Airport (EDDM)\nType: Boeing 737-900 NGX Winglets",
});

oms.addMarker(point_1);

// oms.addMarker(textmarker[textmarker.length]);
var contentString = 'B737-900 (SDA-7379-1) is at Franz Josef Strauss International Airport(EDDM)';
var infowindow_1 = new google.maps.InfoWindow({
   content: contentString
});
google.maps.event.addListener(point_1, 'click', function() {
   if (currentInfoWindow != null) {
    currentInfowindow.close();
   }
   infowindow_1.open(map, point_1);
   currentInfoWindow = infowindow_1;
map.setCenter(point_1.getPosition());
});

Your :

<script type="text/javascript">
var pointer_0 = new google.maps.LatLng(42.4329, 14.1868);
var point_0 = new google.maps.Marker({
position: pointer_0,
map: map,
title: "I-DAVA is at Aeroporto d'Abruzzo (LIBP)",
});
var contentString = 'MD82 (I-DAVA) is at Aeroporto d'Abruzzo(LIBP)';
var infowindow_0 = new google.maps.InfoWindow({
   content: contentString
});
google.maps.event.addListener(point_0, 'click', function() {
infowindow_0.open(map,point_0);
});
</script>

I think you make a loop include Javascript for each points maybe look to your loop

http://www.skydream-airlines.com/index.php/vFleetTracker

Link to comment
Share on other sites

  • 1 month later...

Sorry by type like 'C' for cargo 'P' for passenger or just retrieve by fullname ?

Just go to /core/common/vFleetTrackData.class.php

find

public static function getAllAircraft()
{
return DB::get_results("SELECT * FROM ".TABLE_PREFIX."aircraft");
}

and replace in my case by

public static function getAllAircraft()
{
return DB::get_results("SELECT *
 FROM ".TABLE_PREFIX."aircraft
 WHERE `enabled` = '1'
 AND `rep` = '0'
 AND `bought` = '1'
 ORDER BY ".TABLE_PREFIX."aircraft.`fullname`");
}

to have the result of query give me all aircrafts by fullname with condition if aircraft it bought & enabled & not under reparation. The most important thing is in 'order by' instruction.

So if you want filter by ICAO just find in the forum with the word 'fleet' to have maybe tab for each type like Boeing, Airbus; etc...

Just make this query

SELECT * FROM `phpvms_aircraft` ORDER BY `phpvms_aircraft`.`icao` ASC

Regards Fred

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