Windy Community

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

    tileLayer overlaps wind particles

    Windy Plugins
    1
    1
    59
    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.
    • Kurun
      Kurun Mariners - Seafarers | Premium last edited by

      Hi,

      I want to use the windy API as on the windy website, where when zooming more than level 12, the map background layer becomes open street map.

      I founds that in order to do that, I must add the tile layer like so :

      L.tileLayer(
          "https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
            minZoom: 12,
            maxZoom: 17,
          }
        ).addTo(map);
      

      However when doing so and zooming, I cannot see any particles... I changed to another map background that is mostly transparent (https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lines/{z}/{x}/{y}.png) and then I could see that the particles are in fact behind the newly added tile layer.

      How can I force the particles to go in front of the tile layer(s) ?

      Here is a reproducible example : https://jsfiddle.net/kctyoe8p/ (I created the API key just for this bug report).

      Thanks.

      Patrick.

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