Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Disable zoom on widget

    Your Feedback and Suggestions
    3
    4
    1055
    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.
    • Leonard Bassoon
      Leonard Bassoon last edited by

      Hi,

      First post - so firstly I'd like to say that I love windyty. It's good looking and gives me the info I need. I've embedded a basic widget onto my personal weather station website but I'm looking to disable the scroll zoom as every time I scroll down the page, when it reaches the widget it zooms out rather than continuing to scroll the page.

      I think there must be a way of passing this in the call to the windytymain function but I don't know what it is.

      Can someone please help?

      Thanks,

      Lenny

      ivo 1 Reply Last reply Reply Quote 0
      • ivo
        ivo Administrator @Leonard Bassoon last edited by

        @Leonard-Bassoon good tip

        1 Reply Last reply Reply Quote 0
        • C
          canthony last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • C
            canthony last edited by

            I figured it out:

            // Initialize Windy API
            windyInit( options, windyAPI => {

            const { map } = windyAPI
            
            map.dragging.disable();
            

            })

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
            NodeBB & contributors, OSM & contributors, HERE maps
            Terms and Conditions     Privacy Policy