Windy Community

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

    How to revemo windy object W?

    Windy API v4
    2
    3
    624
    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.
    • G
      gregora last edited by

      Since I'm using two map instances on my page I would need to know how can I remove windy map object W since I'm getting this error:

      tinyrequire DI error: Object W.location already exists undefined

      1 Reply Last reply Reply Quote 0
      • siim
        siim last edited by siim

        I'm not sure if it is possible.
        Use iframe as workaround.

        Windy API v4 uses LocalStorage, so using different maps with different settings is complicated.

        G 1 Reply Last reply Reply Quote 1
        • G
          gregora @siim last edited by

          @siim I used the same "hack" as described here https://community.windy.com/topic/6503/redrawing-or-reinitialising-windyapi-in-a-single-page-app/5

          The bad thing about this is that it will load the scripts again every time I load my component (but ok since we're not developing for mobile devices, data usage shouldn't be an issue for now)

          Would be cool if the map could be initialized per component or if you would be able to change the options without calling windyInit again.

          1 Reply Last reply Reply Quote 1
          • 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