Hi Daniel,

I'm posting here the code to replicate the scenario with only 2 files, in 
case someone has spotted the same issue.
Did you have the chance to look at this and see if this will be solved by 
the fix deployed on Monday? Any idea, when it will be deployed on Monday?

the html page
<!DOCTYPE html>
<html>

<head>
  <title>Simple Map</title>
  <meta name="viewport" content="initial-scale=1.0">
  <meta charset="utf-8">
  <style>
    /* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
    #map {
      height: 100%;
      width: 100%;
    }

    /* Optional: Makes the sample page fill the window. */
    html,
    body {
      height: 100%;
      margin: 0;
      padding: 0;
    }
  </style>
</head>

<body>
  <div style="display: flex;flex-direction: row;height: 100%;width: 100%;">
    <div id="map"></div>
  </div>
  <script src="mapUtil.js"></script>
  <script>
    function afterAll() {
      var uluru = {lat: -25.363, lng: 131.044};
                    this.newmap = new 
google.maps.Map(document.getElementById('map'), {
                        center: uluru,
                        zoom: 8
                      });
      console.log("Everything is loaded");
    }
    MapUtil.loadApi(afterAll);
  </script>
</body>

</html>

and the javascript file
var MapUtil = /** @class */ (function () {
    function MapUtil() {
    }
    MapUtil.loadApi = function (callback) {
        if (callback === void 0) { callback = null; }
        if (MapUtil.loaded) {
            callback();
        }
        else {
            var script = document.createElement("script");
            script.src = 
"https://www.google.com/jsapi?callback=MapUtil.googleLoaderCallback";;
            script.type = "text/javascript";
            document.getElementsByTagName("head")[0].appendChild(script);
            MapUtil.loadApiCallback = callback;
        }
    };
    MapUtil.googleLoaderCallback = function () {
        MapUtil.loaded = true;
        var credentials = "PUTCREDENTIALSHERE";
        var client = "PUTCLIENTHERE";
        var a;
        google.load("maps", "3", {
            "other_params": "client=" + credentials + 
"&sensor=false&channel=" + client + 
"&libraries=geometry,visualization,places,drawing ",
            "callback": function () {
                MapUtil.loadApiCallback();
            }
        });
    };
    MapUtil.loaded = false;
    return MapUtil;
}());

Running and refreshing this page, we can see that sometimes the callback is 
completed and something is never reached.

Again, thanks for your help on this issue and I do apologize for disturbing 
with this but this issue is being critical on our product and we need to 
check all the options and how to solve it asap.

Regards

Xiao

>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/6bdf6b07-cab1-46cc-9b01-278eb338b52e%40googlegroups.com.

Reply via email to