Jump to content

Faster update of the live map


Faban Hamans

Recommended Posts

Hey,

search the arcarsmap.tpl and look for line 43

        refreshTime: Time, in seconds * 1000 to refresh the map.
         The default is 10000 (10 seconds)
*/
?>
var acars_map_defaults = {
       autozoom: true,
       zoom: 5,
   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: 60000
};

Here (Line 43) can you change the refresh time. For 10 seconds you need this code:

        refreshTime: Time, in seconds * 1000 to refresh the map.
         The default is 10000 (10 seconds)
*/
?>
var acars_map_defaults = {
       autozoom: true,
       zoom: 5,
   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
};

But mostly Acars-Systems send only every minute the data. This you cant change!

Hope I can help you.

Basti

  • Like 1
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...