Faster update of the live map

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

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

1 Like