# Weather Map

**URL:** <https://forum.phpvms.net/t/weather-map/11449>\
**Category:** Code Snippets\
**Created:** [November 17, 2016, 10:08am UTC](https://forum.phpvms.net/t/weather-map/11449 "2016-11-17T10:08:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrDalle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@MrDalle](https://forum.phpvms.net/u/MrDalle)\
**Post date:** [November 17, 2016, 10:08am UTC](https://forum.phpvms.net/t/weather-map/11449/1 "2016-11-17T10:08:31Z")

</div>

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/](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..

---

<div class="post-metadata">

**Author:** ![smokey68](https://forum.phpvms.net/user_avatar/forum.phpvms.net/smokey68/32/799_2.png) [@smokey68](https://forum.phpvms.net/u/smokey68)\
**Post date:** [November 18, 2016, 6:20am UTC](https://forum.phpvms.net/t/weather-map/11449/2 "2016-11-18T06:20:44Z")

</div>

change scrolling to yes

---

<div class="post-metadata">

**Author:** ![smokey68](https://forum.phpvms.net/user_avatar/forum.phpvms.net/smokey68/32/799_2.png) [@smokey68](https://forum.phpvms.net/u/smokey68)\
**Post date:** [November 18, 2016, 6:35am UTC](https://forum.phpvms.net/t/weather-map/11449/3 "2016-11-18T06:35:51Z")

</div>

[CLICK HERE TO DOWNLOAD PACKAGED & READY TO GO VERSION](http://php-skins.com/shop/index.php?route=product/product&product_id=63)

---

<div class="post-metadata">

**Author:** ![MrDalle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@MrDalle](https://forum.phpvms.net/u/MrDalle)\
**Post date:** [November 18, 2016, 10:09pm UTC](https://forum.phpvms.net/t/weather-map/11449/4 "2016-11-18T22:09:37Z")

</div>

> change scrolling to yes

That made it finally responsive.. thanks!

---

<div class="post-metadata">

**Author:** ![shakamonkey88](https://forum.phpvms.net/user_avatar/forum.phpvms.net/shakamonkey88/32/969_2.png) [@shakamonkey88](https://forum.phpvms.net/u/shakamonkey88)\
**Post date:** [November 25, 2016, 12:43pm UTC](https://forum.phpvms.net/t/weather-map/11449/5 "2016-11-25T12:43:48Z")

</div>

Fantastic!

Just a quick question - how do you go about skinning modules, etc in order for them to show correctly within crewcenter?

---

<div class="post-metadata">

**Author:** ![smokey68](https://forum.phpvms.net/user_avatar/forum.phpvms.net/smokey68/32/799_2.png) [@smokey68](https://forum.phpvms.net/u/smokey68)\
**Post date:** [November 27, 2016, 7:19am UTC](https://forum.phpvms.net/t/weather-map/11449/6 "2016-11-27T07:19:55Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![shakamonkey88](https://forum.phpvms.net/user_avatar/forum.phpvms.net/shakamonkey88/32/969_2.png) [@shakamonkey88](https://forum.phpvms.net/u/shakamonkey88)\
**Post date:** [November 28, 2016, 9:06am UTC](https://forum.phpvms.net/t/weather-map/11449/7 "2016-11-28T09:06:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![smokey68](https://forum.phpvms.net/user_avatar/forum.phpvms.net/smokey68/32/799_2.png) [@smokey68](https://forum.phpvms.net/u/smokey68)\
**Post date:** [December 2, 2016, 2:59am UTC](https://forum.phpvms.net/t/weather-map/11449/8 "2016-12-02T02:59:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![flyalaska](https://forum.phpvms.net/user_avatar/forum.phpvms.net/flyalaska/32/14_2.png) [@flyalaska](https://forum.phpvms.net/u/flyalaska)\
**Post date:** [December 10, 2016, 9:34pm UTC](https://forum.phpvms.net/t/weather-map/11449/9 "2016-12-10T21:34:11Z")

</div>

Looks nice!

---

<div class="post-metadata">

**Author:** ![smokey68](https://forum.phpvms.net/user_avatar/forum.phpvms.net/smokey68/32/799_2.png) [@smokey68](https://forum.phpvms.net/u/smokey68)\
**Post date:** [December 18, 2016, 10:48am UTC](https://forum.phpvms.net/t/weather-map/11449/10 "2016-12-18T10:48:38Z")

</div>

Thanks flyalaska

---

<div class="post-metadata">

**Author:** ![vJet2](https://forum.phpvms.net/user_avatar/forum.phpvms.net/vjet2/32/137_2.png) [@vJet2](https://forum.phpvms.net/u/vJet2)\
**Post date:** [August 9, 2017, 9:13pm UTC](https://forum.phpvms.net/t/weather-map/11449/11 "2017-08-09T21:13:04Z")

</div>

Hi&nbsp;

When I put this on my frontpage my little aircraft on my acars map on my fronpage disappears. Anyone got any ideas why

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![web541](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@web541](https://forum.phpvms.net/u/web541)\
**Post date:** [August 11, 2017, 7:22am UTC](https://forum.phpvms.net/t/weather-map/11449/12 "2017-08-11T07:22:45Z")

</div>

> On 10/08/2017 at 7:13 AM, AJCWebServices said:
> 
> Hi&nbsp;
> 
> When I put this on my frontpage my little aircraft on my acars map on my fronpage disappears. Anyone got any ideas why
> 
> &nbsp;
> 
> 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.

---

<div class="post-metadata">

**Author:** ![vJet2](https://forum.phpvms.net/user_avatar/forum.phpvms.net/vjet2/32/137_2.png) [@vJet2](https://forum.phpvms.net/u/vJet2)\
**Post date:** [August 11, 2017, 11:13am UTC](https://forum.phpvms.net/t/weather-map/11449/13 "2017-08-11T11:13:46Z")

</div>

&nbsp;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 ??

---

<div class="post-metadata">

**Author:** ![web541](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@web541](https://forum.phpvms.net/u/web541)\
**Post date:** [August 11, 2017, 11:14am UTC](https://forum.phpvms.net/t/weather-map/11449/14 "2017-08-11T11:14:31Z")

</div>

Do you have a website url?

---

<div class="post-metadata">

**Author:** ![vJet2](https://forum.phpvms.net/user_avatar/forum.phpvms.net/vjet2/32/137_2.png) [@vJet2](https://forum.phpvms.net/u/vJet2)\
**Post date:** [August 11, 2017, 11:18am UTC](https://forum.phpvms.net/t/weather-map/11449/15 "2017-08-11T11:18:10Z")

</div>

I will have to give you access to an admin account as page is only available to members. I will PM you mate

---

<div class="post-metadata">

**Author:** ![vJet2](https://forum.phpvms.net/user_avatar/forum.phpvms.net/vjet2/32/137_2.png) [@vJet2](https://forum.phpvms.net/u/vJet2)\
**Post date:** [August 11, 2017, 6:28pm UTC](https://forum.phpvms.net/t/weather-map/11449/16 "2017-08-11T18:28:22Z")

</div>

I got it working . 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](https://gyazo.com/47e5dcfef4058b2d8d44716ffd95d685)

---

<div class="post-metadata">

**Author:** ![web541](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@web541](https://forum.phpvms.net/u/web541)\
**Post date:** [August 11, 2017, 10:34pm UTC](https://forum.phpvms.net/t/weather-map/11449/17 "2017-08-11T22:34:42Z")

</div>

> 4 hours ago, AJCWebServices said:
> 
> I got it working . 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](https://gyazo.com/47e5dcfef4058b2d8d44716ffd95d685)

Cool! Glad you got it working!

---

<div class="post-metadata">

**Author:** ![Lausitzaircargo](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/l/f1d935/32.png) [@Lausitzaircargo](https://forum.phpvms.net/u/Lausitzaircargo)\
**Post date:** [October 13, 2017, 8:10pm UTC](https://forum.phpvms.net/t/weather-map/11449/18 "2017-10-13T20:10:58Z")

</div>

Hello Guys

&nbsp;

have anybody the code to show the Map on the frontpage\_main.php ?&nbsp;

Thanks in Advance

&nbsp;

---

<div class="post-metadata">

**Author:** ![hurkulez](https://forum.phpvms.net/user_avatar/forum.phpvms.net/hurkulez/32/401_2.png) [@hurkulez](https://forum.phpvms.net/u/hurkulez)\
**Post date:** [October 13, 2017, 11:58pm UTC](https://forum.phpvms.net/t/weather-map/11449/19 "2017-10-13T23:58:33Z")

</div>

> 3 hours ago, Lausitzaircargo said:
> 
> Hello Guys
> 
> &nbsp;
> 
> have anybody the code to show the Map on the frontpage\_main.php ?&nbsp;
> 
> 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>
> 
> ```

Example @ [Flight Unlimited Network Virtual](http://fun.flightunlimited.net) The F.U.N. One

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Lausitzaircargo](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/l/f1d935/32.png) [@Lausitzaircargo](https://forum.phpvms.net/u/Lausitzaircargo)\
**Post date:** [October 14, 2017, 7:57am UTC](https://forum.phpvms.net/t/weather-map/11449/20 "2017-10-14T07:57:56Z")

</div>

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…

&nbsp;

So the next please. I dotn know where i can figure it out
