Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login
    1. Home
    2. MMurphyThree
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    MMurphyThree

    @MMurphyThree

    1
    Reputation
    7
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    MMurphyThree Unfollow Follow

    Best posts made by MMurphyThree

    • RE: Zoom is limited to level 11

      Just for anyone coming to this topic now, I used @Tedde / @jalbert's solution and it worked a treat, but I've found it can actually be achieved with a bit less code. @jalbert added minZoom and maxZoom options to the tileLayer, essentially negating the need for the zoomend Event Listener that @Tedde suggested. So in short, the following code is all that's required:

      map.options.minZoom = 4;
      map.options.maxZoom = 17;
      
      var topLayer = L.tileLayer('https://b.tile.openstreetmap.org/{z}/{x}/{y}.png', {
          attribution: 'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, ',
          minZoom: 12,
          maxZoom: 17
      }).addTo(map);
      
      posted in Windy API v4
      M
      MMurphyThree

    Latest posts made by MMurphyThree

    • RE: Zoom is limited to level 11

      Just for anyone coming to this topic now, I used @Tedde / @jalbert's solution and it worked a treat, but I've found it can actually be achieved with a bit less code. @jalbert added minZoom and maxZoom options to the tileLayer, essentially negating the need for the zoomend Event Listener that @Tedde suggested. So in short, the following code is all that's required:

      map.options.minZoom = 4;
      map.options.maxZoom = 17;
      
      var topLayer = L.tileLayer('https://b.tile.openstreetmap.org/{z}/{x}/{y}.png', {
          attribution: 'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, ',
          minZoom: 12,
          maxZoom: 17
      }).addTo(map);
      
      posted in Windy API v4
      M
      MMurphyThree