weather layer

Are you having problems with using or developing a plugin? Let me know here.
nitro999
Posts: 76
Joined: Tue Feb 09, 2016 7:32 pm
Location: UK
Contact:

Re: weather layer

Post by nitro999 » Sun Sep 16, 2018 7:31 pm

What error messages are in your browser console when you enable your html file?
www.freedar.uk
Radarcape, Swindon (UK) | . FR24: T-EGVA10 | Flightaware 16984
adsbhub.org feeder #50 Swindon, UK

jdor
Posts: 51
Joined: Sun Aug 26, 2018 1:41 pm

Re: weather layer

Post by jdor » Sun Sep 16, 2018 7:32 pm

https://i.postimg.cc/DZVBtF61/missing_layer.jpg

this shows what the code in sample.html generates

jdor
Posts: 51
Joined: Sun Aug 26, 2018 1:41 pm

Re: weather layer

Post by jdor » Sun Sep 16, 2018 7:37 pm

I have fixed it now thanks like you stated i had to remove head and body tags. sorry and thanks

nitro999
Posts: 76
Joined: Tue Feb 09, 2016 7:32 pm
Location: UK
Contact:

Re: weather layer

Post by nitro999 » Sun Sep 16, 2018 7:40 pm

great - you're welcome
www.freedar.uk
Radarcape, Swindon (UK) | . FR24: T-EGVA10 | Flightaware 16984
adsbhub.org feeder #50 Swindon, UK

jdor
Posts: 51
Joined: Sun Aug 26, 2018 1:41 pm

Re: weather layer

Post by jdor » Sun Sep 16, 2018 10:47 pm

This is what I was trying to do but as not great with html was not sure how to set it up, its all working now

Image

machsimum
Posts: 5
Joined: Thu Feb 06, 2014 11:31 am

Re: weather layer

Post by machsimum » Sun Oct 14, 2018 5:09 am

Any joy with OpenWeather? Anyone managed to overlay as it seems that its compatible with the newer leaflet maps. Also wondered whether anyone has every thought about overlaying windymaps as I think they would really look good on vrs... :D :D

fedelosa
Posts: 5
Joined: Sun Feb 12, 2017 4:52 am

Re: weather layer

Post by fedelosa » Thu Dec 20, 2018 4:25 pm

Hi nitro999

How can I select which overlays appear as an option?

If I comment one section of "Put this file at the end of BODY" file, then, the plugin doesn't work, I mean, there is no ICON to click in the map.

I was trying to hide this option for example, so I comment this entire lines.

Code: Select all

// Add UK civil airfields
		
    var civAirfieldsStyle = L.geoJson(null, {
          onEachFeature: function (feature, layer) {
            layer.setIcon(civIcon);
            layer.bindPopup('<table><tr><th>' + feature.properties.title + '</th></tr><tr><td>ICAO</td><td>' + feature.properties.icao + '</td></tr><tr><td>IATA</td><td>' + feature.properties.iata + '</td></tr><tr><td>Runways</td><td>' + feature.properties.runways + '</td></tr><tr><td>Chart</td><td><a href=' + feature.properties.chart + ' target ="charts">View</a></td></tr><tr><td>Tower Frequency</td><td>' + feature.properties.tower + '</td></tr><tr><td>ATIS Frequency</td><td>' + feature.properties.atis + '</td></tr><tr><td>Ground Frequency</td><td>' + feature.properties.ground + '</td></tr><tr><td>Approach Frequency</td><td>' + feature.properties.approach + '</td></tr><tr><td>Air Ground Frequency</td><td>' + feature.properties.airground + '</td></tr><tr><td>AFIS Frequency</td><td>' + feature.properties.afis + '</td></tr></table>');
          }
        });

    //var civilAirfields = omnivore.csv('https://rawgit.com/nitro999/vrs-overlays/master/Put%20these%20files%20in%20VRS%20root%20folder/civairfields.csv', null, civAirfieldsStyle);
    var civilAirfields = omnivore.csv('civairfields.csv', null, civAirfieldsStyle);

Tom
Posts: 9
Joined: Mon Jun 04, 2018 7:45 pm

Re: weather layer

Post by Tom » Mon Dec 24, 2018 2:12 pm

Hi,
at the end of that file is a section called "Define menu items"

Code: Select all

    // Define menu items

    var groupedOverlays = {
        "Global Airspace": {
          "Airspace": openAIPairspace,
          "Navaids": tacanVOR,
          "Airfields": openAIPairfields
        },
        "Global Weather": {
        "Cloud": aerisCloud,
        "Rain radar": aerisInfraSat,
        "Wind" : aerisWind,
        "Air pressure (QNH)": aerisPressure,
        "Satellite" : nasaSat,
        "Daylight and Night" : dayNight

Here you can deselect menu entries via comments

Cheers
Thomas

Post Reply