Errors from Lib.js - Started 1st August 2022
-
Hi Windy,
We first noticed we were getting errors from lib.js this morning, errors shown in Chome Dev Console:
Screenshot 2022-08-01 104605.png Screenshot 2022-08-01 105634.png Screenshot 2022-08-01 105657.png
Can you please investigate this?
Let me know if you need any more information. We were not getting these errors last week.
Euan
-
Hi @CompassDSNM ,
sorry for the issue, we will look into this.Can you please specify, how and what parameters are you setting up? It looks like the problem is with product and overlay.
If you don't want to enclose details here, write us an email to support@windy.com
Thanks,
Tomas -
Hi I'm also getting errors starting from the new libBoot version 36.0.0.
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'maxZoom')
at windy.js:182:24
at libBoot.js:1:259144windy.js 182
W.map.options.maxZoom = 18;
Thanks
Pete -
@petegreg Sorry for the trouble. Please, use
map
object returned into API init callback (example: https://api.windy.com/map-forecast/examples/hello-world). As it stands in the documentation https://api.windy.com/map-forecast/docsDo not use features not listed here as we cannot guarantee that they will be available in other versions of Map Forecast API.
For hotfix use
W.map.map
instead ofW.map
, but it does not solve the issue for next possible releases. The only safe solution is to use only a documented methods and objects from callback. -
@marekd Thanks for the help. All good now!