Jump to content
Sign in to follow this  
MrDalle

Weather Map

Recommended Posts

MrDalle    1

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/

S3nUZEO.jpg

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

Edited by MrDalle

Share this post


Link to post
Share on other sites
vbegin7    5

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
vbegin7    5

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
web541    49
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.

Share this post


Link to post
Share on other sites

@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 ??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×