Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    1. Home
    2. andreszs
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 1
    • Controversial 0
    • Groups 0

    andreszs

    @andreszs

    2
    Reputation
    5
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    andreszs Unfollow Follow

    Best posts made by andreszs

    • How to set leaflet map interaction options?

      I know that map methods can be accessed using the map object, but how can we configure the map options such as doubleClickZoom, dragging and so on?

      This is my current initialization code:

      windyInit( options, windyAPI => {
      	// windyAPI is ready, and contain 'map', 'store', 'picker'
      	const {store,map} = windyAPI;
      	store.set('lang', 'es');
      	// .map is instance of Leaflet map
      	map.setMaxZoom(9); /* this is a method and it works */
      	map.doubleClickZoom = false; /* this is an option and it does not work */
      	// add default marker
      	L.marker([options.lat, options.lon]).addTo(map); 
      })
      
      posted in Windy API v4
      A
      andreszs

    Latest posts made by andreszs

    • How to set leaflet map interaction options?

      I know that map methods can be accessed using the map object, but how can we configure the map options such as doubleClickZoom, dragging and so on?

      This is my current initialization code:

      windyInit( options, windyAPI => {
      	// windyAPI is ready, and contain 'map', 'store', 'picker'
      	const {store,map} = windyAPI;
      	store.set('lang', 'es');
      	// .map is instance of Leaflet map
      	map.setMaxZoom(9); /* this is a method and it works */
      	map.doubleClickZoom = false; /* this is an option and it does not work */
      	// add default marker
      	L.marker([options.lat, options.lon]).addTo(map); 
      })
      
      posted in Windy API v4
      A
      andreszs