Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    User input field for custom calculations on the map

    Scheduled Pinned Locked Moved Developers
    2 Posts 2 Posters 1.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • francescogolaF Offline
      francescogola | Premium
      last edited by

      Hi everyone,

      I’m currently working on a plugin for Windy (Cloud Horizon Distance) and I would like to ask if there’s a way to let the user input a custom value that can then be used for drawing on the map.

      In practice, I’d need something like a small input field (or slider) where the user can set an angle in degrees. This value would then be passed to my calculation function, which returns a distance to draw as circles on the map.

      Does the Windy API currently support this kind of interactive input (e.g. text box, numeric field, slider)? Or is there any workaround that you would suggest to achieve a similar result?

      Thanks a lot for your help,

      Francesco

      Francesco

      rittelsR 1 Reply Last reply Reply Quote 0
      • rittelsR Offline
        rittels Code contributor @francescogola | Premium
        last edited by

        @francescogola You can use any input elements. If it is a text type element, you will have to add ev.stopPropagation() on the keydown event for your input element. Windy uses +, -, f, left and right Arrows as hotkeys, with the listener on body.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Windy Community  |  Powered by excellent NodeBB
        Terms of Use     Privacy Policy     Windy.com