Jump to content

Recommended Posts

Posted

Hoi maybe you can help me

Live map wil now update every 59 seconds.

Is there a way to set the update speed faster?

Like 10 seconds.

And if the answer is Yes how can i change it

With frendy greetings

Va-Surfcity®

Fabian Hamans

Posted

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

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