Improved paragliding sites plugin

  • Hello,

    As a developer, paragliding enthusiast and traveller, I'm very interested in Windy plugins, as it would allow me to develop my dream feature: An improved paragliding sites map, inspired by but much better because it would have Windy's performance and great features :)

    Starting from the base windy pg overlay, here are a few ideas I would like to implement:

    • Change icons based on site orientation, change icon color based on flyability (see below)
    • Add a flyability feature (based on wind strength & orientation & others, something like paraglidingmap but better :) )
    • Add a detailed popup for flyability
    • Add an "open in google maps" feature
    • Activate only at a certain zoom level (for performance reasons)
    • From a click anywhere on the map, add a "where are the closest flyable options from here?" option
    • etc.

    Therefore, I have a few questions:

    1. Do you think it is feasible?
    2. Is the paragliding overlay developed as a plugin on your side, and is there any chance I could get access to the code?
    3. If no to 2), I see you use pgearth API, is there a way to access the these infos from my plugin, or would I have to get all the infos on my own?
    4. Would it be best to alter the overlay you already have (if it is even possible?), or to create a separate one?

    Thank you

  • Administrator

    That would be great.

    What is your skill level?

    The Windy's speed is result of naive JS. In fact current pg layer does not use Leaflet markers at all. All is custom.

    Our pg codes are quite hardwired into Windy's codes. Rather than that I would make example how to display thousands of points on a map.

  • Administrator

    We are also committed to open our backend APIS for purpose of Plugins, just no time so far.

  • @ivo thanks for your quick answer.

    10 years exp in web dev. Never worked with leaflet but I'll learn.

    I've forked your repo & setup my dev environment but wanted your input before investing too much time :)

    For the example, I don't think it's necessary, unless it's very different to the boat tracking example.

  • @ivo I have started playing with my plugin, which you can find here:

    I have used a small set of data (Andalucia) from paraglidingearth for testing purposes.

    I can display the sites and orientation, but I'm stuck on a few issues:

    1. I can't get the weather infos for the sites. I have tried an ugly temporary way (see flyability branch) by listening to pickerMoved and moving the picker programatically but it doesn't work. What I would need is a simple way to get the wind object from a given set of coordinates.
      1a. Later I would also like to check for nebulosity and rain but I don't know if it would be possible without going back to the server?
    2. I can't get the zoom level. I hoped to find it in the store, but I didn't. I would like to use it to start displaying takeoffs at at certain zoom level, and landings when you get even closer.
    3. For the full pge dataset, I have contacted them to get access to their API, but if there is a way to get them directly from Windy it would be best.

    Thank you for your time.

  • Administrator

    @okocedion Can you publish it as npm so I can test it on Windy?

  • Administrator

    Just sent you link how to get data from PGearth API via PM

  • Administrator

    Leaflet map.getZoom()

  • Administrator

    Downloading backend data is not yet develop, but I add example how to Interpolate wind data from a map, so you can get flyability from a lot of point on a map

  • Administrator

  • Thanks a lot @ivo, I should now be able to get a first version running, I'll work on it and publish a first version asap :)

  • @Okocedion How everything goes?

Log in to reply

Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps

Looks like your connection to Windy Community was lost, please wait while we try to reconnect.