I am using webix google-map to load a map. Suddenly it appears to stop working. The error given is
Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance.
Online I have searched, seems like Google within the past few months is enforcing this rule. The solution is to include a callback, but I am unsure how to do this if I am creating the map from webix. My code is simply
In the near future we will make the necessary changes so Webix meets the new Google requirements. Thanks for the report!
As workaround you can add &callback=Function.prototype to src property.
Please, check out the snippet with example: Code Snippet
Thanks for the quick response. This has stopped the error/warning.
However the map still does not seem to load. I have not made any changes to the code so I assumed that was the cause. So why has it suddenly stopped working? I test my API key in the webix snippet and it seems to work fine. My webix version is 9.1.6. Strangely, there are no errors thrown. Its just blank where the map was before.
Inspecting the HTML I believe the google maps elements should be loaded in this div, but it is empty.