MrDalle Posted November 17, 2016 Report Posted November 17, 2016 (edited) Hey guys, i made a template to use this great weather map with phpvms. Its just a iframe but its doing his job! The map is very accurate!!.. i tested it yesterday with AS16 (P3D) https://www.ventusky.com/ put this in core/modules/ACARS/ACARS.php public function viewmapwxr() { $this->render('wxrmap.php'); } create a file called "wxrmap.php" inyour /lib/skins/YOURSKIN/wxrmap.php <style> .embed-container { position: relative; padding-bottom: 56.25%; /* ratio 16x9 */ height: 0; overflow: hidden; width: 100%; height: auto; } .embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* ratio 4x3 */ .embed-container.ratio4x3 { padding-bottom: 75%; } </style> <!-- Main content --> <!-- Main row --> <div class="embed-container"> <iframe src="https://www.ventusky.com/?p=-53;31;2&l=wind&m=icon" name="" scrolling="yes"></iframe> </div> acces it by using: /index.php/acars/viewmapwxr I cant get the iframe responsive maybe you can help.. Edited November 19, 2016 by MrDalle Quote
smokey68 Posted November 18, 2016 Report Posted November 18, 2016 CLICK HERE TO DOWNLOAD PACKAGED & READY TO GO VERSION 2 Quote
MrDalle Posted November 18, 2016 Author Report Posted November 18, 2016 change scrolling to yes That made it finally responsive.. thanks! Quote
Moderators shakamonkey88 Posted November 25, 2016 Moderators Report Posted November 25, 2016 Fantastic! Just a quick question - how do you go about skinning modules, etc in order for them to show correctly within crewcenter? Quote
smokey68 Posted November 27, 2016 Report Posted November 27, 2016 Fantastic! Just a quick question - how do you go about skinning modules, etc in order for them to show correctly within crewcenter? Not sure what you're saying please rephrase so i do answer your question correctly Quote
Moderators shakamonkey88 Posted November 28, 2016 Moderators Report Posted November 28, 2016 Not sure what you're saying please rephrase so i do answer your question correctly There are only certain pages in crewcenter. when I go to a module (like vfleettracker) it doesn't show the crewcenter skin - it shows a normal white page with the information and no crewcenter sidebar. Quote
smokey68 Posted December 2, 2016 Report Posted December 2, 2016 i tried using the crewcenter and it didnt work for me very well so i created my own that works fantastic someone didnt know what they were doing when they put that together Quote
Virtualei Posted August 9, 2017 Report Posted August 9, 2017 Hi When I put this on my frontpage my little aircraft on my acars map on my fronpage disappears. Anyone got any ideas why Thanks Quote
web541 Posted August 11, 2017 Report Posted August 11, 2017 On 10/08/2017 at 7:13 AM, AJCWebServices said: Hi When I put this on my frontpage my little aircraft on my acars map on my fronpage disappears. Anyone got any ideas why Thanks Are there any errors in your browser console and does it happen to all aircraft? Does it happen to the normal ACARS map? It might just be overridden by the weather. Quote
Virtualei Posted August 11, 2017 Report Posted August 11, 2017 @web541 I think you would be right by saying it is overwritten. The live map works fine on its own page. I do have 2 seperate maps on my page. One for flights the other for the weather. I think something is conflicting tbh. Maybe if the weather map was in a different module rather than the acars.php this would solve it but I would not know how to do this.Any ideas ?? Quote
Virtualei Posted August 11, 2017 Report Posted August 11, 2017 I will have to give you access to an admin account as page is only available to members. I will PM you mate Quote
Virtualei Posted August 11, 2017 Report Posted August 11, 2017 (edited) I got it working @web541. Dont know why but if I swap the maps about and put the weather map at the top and the acars map below it works https://gyazo.com/47e5dcfef4058b2d8d44716ffd95d685 Edited August 11, 2017 by AJCWebServices Quote
web541 Posted August 11, 2017 Report Posted August 11, 2017 (edited) 4 hours ago, AJCWebServices said: I got it working @web541. Dont know why but if I swap the maps about and put the weather map at the top and the acars map below it works https://gyazo.com/47e5dcfef4058b2d8d44716ffd95d685 Cool! Glad you got it working! Edited August 11, 2017 by web541 1 Quote
Lausitzaircargo Posted October 13, 2017 Report Posted October 13, 2017 Hello Guys have anybody the code to show the Map on the frontpage_main.php ? Thanks in Advance Quote
hurkulez Posted October 13, 2017 Report Posted October 13, 2017 (edited) 3 hours ago, Lausitzaircargo said: Hello Guys have anybody the code to show the Map on the frontpage_main.php ? Thanks in Advance <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><?php echo SITE_NAME; ?> Live Map</div> <div class="panel-body"> <script type="text/javascript"> var acars_map_defaults = { autozoom: false, zoom: 2, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.SATELLITE, refreshTime: 1000 }; </script> <div class="mapcenter" align="center"> <div id="acarsmap" style="width: 100%; height: 500px"></div> <!-- <div id="acarsmap map_canvas" ></div>--> </div> </div> </div> </div> </div> Example @ Flight Unlimited Network Virtual The F.U.N. One Edited October 14, 2017 by hurkulez Quote
Lausitzaircargo Posted October 14, 2017 Report Posted October 14, 2017 (edited) Thats not the correct Answer. I wil lhave not the Livemap on the Mainsite, i will have the Weather map in this topic on the frontpage_main... The Livemap i have already..... So the next please. I dotn know where i can figure it out Edited October 14, 2017 by Lausitzaircargo Quote
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.