magicflyer Posted July 15, 2015 Report Share Posted July 15, 2015 How to Change the Look of the ACARS Map As usual, We highly suggest backing up before making any changes. 1. Find the Style you want on https://snazzymaps.com 2. Click on "COPY" by the Code Snippet 3. Open up the file "acarsmap.tpl" located in your skins folder 4. Around line 38, BEFORE the acars_map_default variable add the following code: var myStyle = PASTE HERE 5. Paste what you copied in step #2 where it says "PASTE HERE" in the snippet above. 6. INSIDE the acars_map_default variable add the following code: var acars_map_defaults = { autozoom: true, styles: myStyle, // <-- ADD THIS 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.TERRAIN, refreshTime: 10000 }; Note the comma at the end to indicate a separate property for the Google Map. So....let's wrap up. Here's the final code: var myStyle = PASTE HERE var acars_map_defaults = { autozoom: true, styles: myStyle, // <-- ADD THIS 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.TERRAIN, refreshTime: 10000 }; 4 Quote Link to comment Share on other sites More sharing options...
atulumello Posted July 18, 2015 Report Share Posted July 18, 2015 Very helpful. Thank you! Quote Link to comment Share on other sites More sharing options...
dohavik Posted August 5, 2015 Report Share Posted August 5, 2015 Thank you very much for the interesting post Quote Link to comment Share on other sites More sharing options...
Ariel Posted July 24, 2017 Report Share Posted July 24, 2017 To this day ...this still works...thank you so much!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.