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

    TMS layer with set url

    Scheduled Pinned Locked Moved Windy API v4
    2 Posts 1 Posters 911 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.
    • D Offline
      dirtgambit
      last edited by

      I have a TMS layer I want to use instead of the windy base layer, map.baseLayer.setUrl allows me to change the base map easily but how can I set the tms property so it shows correctly otherwise the maps images are all mixed up

      regards

      1 Reply Last reply Reply Quote 0
      • D Offline
        dirtgambit
        last edited by

        ok so I was able to get a tms layer working by doing this
        map.baseLayer.options.tms = true;
        map.baseLayer.options.maxZoom = 18;
        map.baseLayer.options.minZoom = 2;
        map.baseLayer.options.opacity = 0.50;
        map.baseLayer.options.attribution = 'NOT TO BE USED FOR NAVIGATION'
        map.baseLayer.setUrl("https://wms.transas.com/TMS/1.0.0/utt/{z}/{x}/{y}.png");

        but the opacity doesn't seem to be registering so I don't see any windy weather also the attribution isn't shown.

        Any help on this would be appreciated, I know the tiles are full on images but if there is a level of transparency then I should see some weather behind it, I also don't mind being aggressive with the transparency to show the weather better

        regards

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